To cope with shell archive file generated by GNU sharutils 4.2.
(it assumes that shar will bark if there's invalid argument specified) Patch suggested by Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>. Reviewed by: joerg_wunsch@uriah.heep.sax.de
This commit is contained in:
parent
a1b442d74c
commit
53202ce57a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28871
@ -35,10 +35,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo 'usage: shar file ...'
|
echo 'usage: shar file ...' 1>&2
|
||||||
exit 1
|
exit 64 # EX_USAGE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for i
|
||||||
|
do
|
||||||
|
if [ ! -e $i ]; then
|
||||||
|
echo "$i does not exist" 1>&2
|
||||||
|
exit 66 # EX_NOINPUT
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
# This is a shell archive. Save it in a file, remove anything before
|
# This is a shell archive. Save it in a file, remove anything before
|
||||||
# this line, and then unpack it by entering "sh file". Note, it may
|
# this line, and then unpack it by entering "sh file". Note, it may
|
||||||
|
Loading…
Reference in New Issue
Block a user