Don't echo '# $FreeBSD$' as the first line into the .uu file. Keyword

substitution applies to this file, including the echo command. Avoid
the match (and substitution) by breaking the string up into 3 parts.
This commit is contained in:
Marcel Moolenaar 2014-09-22 15:27:23 +00:00
parent 572950ab03
commit c9b97e3bda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271968

View File

@ -91,7 +91,8 @@ mkimg_test()
hexdump -C $image > $result
baseline=`atf_get_srcdir`/$image
if test "x$mkimg_update_baseline" = "xyes"; then
echo '# $FreeBSD$' > $image.gz.uu
# Prevent keyword expansion when writing the keyword.
(echo -n '# $'; echo -n FreeBSD; echo '$') > $image.gz.uu
gzip -c $result | uuencode $image.gz >> $image.gz.uu
rm $image $result _tmp-*
else