Limit the EOF marker length to a maximum of 79

characters. [1]

Add $FreeBSD$ tag so that I can actually commit this.

PR:		bin/118782
Reported by:	Bjoern Koenig
Patch by:	edwin, Jaakko Heinonen (not used patch)
MFC after:	1 week
Approved by:	imp (mentor, implicit)
This commit is contained in:
Remko Lodder 2008-05-27 09:45:18 +00:00
parent 33226dc83d
commit d92b4112c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179355

View File

@ -33,6 +33,7 @@
#
# @(#)shar.sh 8.1 (Berkeley) 6/6/93
#
# $FreeBSD$
if [ $# -eq 0 ]; then
echo 'usage: shar file ...' 1>&2
@ -70,10 +71,12 @@ do
echo "echo c - $i"
echo "mkdir -p $i > /dev/null 2>&1"
else
md5sum=`echo -n $i | md5`
eofmarker="END-of-$md5sum"
echo "echo x - $i"
echo "sed 's/^X//' >$i << 'END-of-$i'"
echo "sed 's/^X//' >$i << '$md5sum'"
sed 's/^/X/' $i || exit
echo "END-of-$i"
echo "$md5sum"
fi
done
echo exit