]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix bootstrap.sh dependency on SPONSORS.list
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Dec 2014 11:13:37 +0000 (00:13 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Dec 2014 11:13:37 +0000 (00:13 +1300)
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 aa8e894ec4ed7b09697ecfc403ce14edd6c9601b..a6f9c92414d5efe996823025f1330090e52fbc65 100755 (executable)
@@ -164,7 +164,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