]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix bootstrap.sh dependency on SPONSORS.list
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Dec 2014 12:07:22 +0000 (04:07 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Dec 2014 12:07:22 +0000 (04:07 -0800)
bootstrap.sh is distributed in tarballs and may be used by packagers for
various reasons. It does not need to unconditionally replace SPONSORS.

bootstrap.sh

index 3f14fdeb808481649f613a3b5bc77c478a4d1677..f287ad9d6136d7bbcc7c26882892cce0a49d7ee4 100755 (executable)
@@ -156,7 +156,9 @@ do
 done
 
 # Make a copy of SPONSORS we can package
-sed -e 's/@Squid-[0-9\.]*://' <SPONSORS.list > SPONSORS || (rm -f SPONSORS && exit 1)
+if test -f SPONSORS.list; then
+  sed -e 's/@Squid-[0-9\.]*://' <SPONSORS.list > SPONSORS || (rm -f SPONSORS && exit 1)
+fi
 
 # Fixup autoconf recursion using --silent/--quiet option
 # autoconf should inherit this option whe recursing into subdirectories