Line
Link Here
|
|
echo 'Note: not verifying md5sums. Consider installing GNU coreutils.' |
|
echo 'Note: not verifying md5sums. Consider installing GNU coreutils.' |
1 |
if test -f $dir/gettext \ |
1 |
if test -f $dir/gettext \ |
2 |
&& ($dir/gettext --version >/dev/null 2>&1) |
2 |
&& ($dir/gettext --version >/dev/null 2>&1) |
3 |
then |
3 |
then |
4 |
case `$dir/gettext --version 2>&1 | sed 1q` in |
4 |
case `$dir/gettext --version 2>&1 | sed 1q` in |
5 |
*GNU*) gettext_dir=$dir |
5 |
*GNU*) gettext_dir=$dir |
6 |
set_echo=true |
6 |
set_echo=true |
7 |
break ;; |
7 |
break ;; |
8 |
esac |
8 |
esac |
9 |
fi |
9 |
fi |
10 |
set_echo=false |
10 |
set_echo=false |
11 |
for dir in $PATH |
11 |
for dir in $PATH |
12 |
do |
12 |
do |
13 |
if test -f $dir/shar \ |
13 |
if test -f $dir/shar \ |
14 |
&& ($dir/shar --print-text-domain-dir >/dev/null 2>&1) |
14 |
&& ($dir/shar --print-text-domain-dir >/dev/null 2>&1) |
15 |
then |
15 |
then |
16 |
locale_dir=`$dir/shar --print-text-domain-dir` |
16 |
locale_dir=`$dir/shar --print-text-domain-dir` |
17 |
set_echo=true |
17 |
set_echo=true |
18 |
break |
18 |
break |
19 |
fi |
19 |
fi |
20 |
done |
20 |
done |
21 |
if ${set_echo} |
21 |
if ${set_echo} |
22 |
then |
22 |
then |
23 |
TEXTDOMAINDIR=$locale_dir |
23 |
TEXTDOMAINDIR=$locale_dir |
24 |
export TEXTDOMAINDIR |
24 |
export TEXTDOMAINDIR |
25 |
TEXTDOMAIN=sharutils |
25 |
TEXTDOMAIN=sharutils |
26 |
export TEXTDOMAIN |
26 |
export TEXTDOMAIN |
27 |
echo="$gettext_dir/gettext -s" |
27 |
echo="$gettext_dir/gettext -s" |
28 |
fi |
28 |
fi |
29 |
then shar_n= shar_c=' |
29 |
then shar_n= shar_c=' |
30 |
else shar_n=-n shar_c= ; fi |
30 |
else shar_n=-n shar_c= ; fi |
31 |
test ! -f ${st1} && test -f ${f}; then |
31 |
test ! -f ${st1} && test -f ${f}; then |
32 |
shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"' |
32 |
shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"' |
33 |
test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then |
33 |
test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then |
34 |
shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"' |
34 |
shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"' |
35 |
test ! -f ${st3} && test -f ${f}; then |
35 |
test ! -f ${st3} && test -f ${f}; then |
36 |
shar_touch='touch -am $3$4$5$6$2 "$8"' |
36 |
shar_touch='touch -am $3$4$5$6$2 "$8"' |
37 |
shar_touch=: |
37 |
shar_touch=: |
38 |
echo |
38 |
echo |
39 |
${echo} 'WARNING: not restoring timestamps. Consider getting and |
39 |
${echo} 'WARNING: not restoring timestamps. Consider getting and |
40 |
echo |
40 |
echo |
41 |
exit 1 |
41 |
exit 1 |
42 |
exit 1 |
42 |
exit 1 |
43 |
mkdir 'hypatia' |
43 |
mkdir 'hypatia' |
44 |
exit 1 |
44 |
exit 1 |
45 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/distinfo' && |
45 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/distinfo' && |
46 |
(set 20 15 07 25 23 08 27 'hypatia/distinfo' |
46 |
(set 20 15 07 25 23 08 27 'hypatia/distinfo' |
47 |
eval "${shar_touch}") && \ |
47 |
eval "${shar_touch}") && \ |
48 |
chmod 0664 'hypatia/distinfo' |
48 |
chmod 0664 'hypatia/distinfo' |
49 |
if ${md5check} |
49 |
if ${md5check} |
50 |
then ( |
50 |
then ( |
51 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/distinfo': 'MD5 check failed' |
51 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/distinfo': 'MD5 check failed' |
52 |
) << \SHAR_EOF |
52 |
) << \SHAR_EOF |
Line 5264
Link Here
|
5264 |
${echo} "restoration warning: size of 'hypatia/distinfo' is not 174" |
45 |
${echo} "restoration warning: size of 'hypatia/distinfo' is not 174" |
5265 |
fi |
46 |
fi |
5266 |
mkdir 'hypatia' |
47 |
mkdir 'hypatia' |
5267 |
exit 1 |
48 |
exit 1 |
5268 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/pkg-descr' && |
49 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/pkg-descr' && |
5269 |
(set 20 15 07 25 23 08 27 'hypatia/pkg-descr' |
50 |
(set 20 15 07 25 23 08 27 'hypatia/pkg-descr' |
5270 |
eval "${shar_touch}") && \ |
51 |
eval "${shar_touch}") && \ |
5271 |
chmod 0664 'hypatia/pkg-descr' |
52 |
chmod 0664 'hypatia/pkg-descr' |
5272 |
if ${md5check} |
53 |
if ${md5check} |
5273 |
then ( |
54 |
then ( |
5274 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/pkg-descr': 'MD5 check failed' |
55 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/pkg-descr': 'MD5 check failed' |
5275 |
) << \SHAR_EOF |
56 |
) << \SHAR_EOF |
5276 |
${echo} "restoration warning: size of 'hypatia/pkg-descr' is not 195" |
57 |
${echo} "restoration warning: size of 'hypatia/pkg-descr' is not 195" |
5277 |
fi |
58 |
fi |
5278 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/Makefile' && |
59 |
sed 's/^X//' << 'SHAR_EOF' > 'hypatia/Makefile' && |
5279 |
(set 20 15 07 25 23 08 53 'hypatia/Makefile' |
60 |
(set 20 15 07 25 23 08 53 'hypatia/Makefile' |
5280 |
eval "${shar_touch}") && \ |
61 |
eval "${shar_touch}") && \ |
5281 |
chmod 0664 'hypatia/Makefile' |
62 |
chmod 0664 'hypatia/Makefile' |
5282 |
if ${md5check} |
63 |
if ${md5check} |
5283 |
then ( |
64 |
then ( |
5284 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/Makefile': 'MD5 check failed' |
65 |
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'hypatia/Makefile': 'MD5 check failed' |
5285 |
) << \SHAR_EOF |
66 |
) << \SHAR_EOF |
5286 |
${echo} "restoration warning: size of 'hypatia/Makefile' is not 922" |
67 |
${echo} "restoration warning: size of 'hypatia/Makefile' is not 922" |
5287 |
fi |
68 |
fi |
5288 |
exit 1 |
69 |
exit 1 |