]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: snapshot detect package name and version better.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Tue, 15 Jun 2010 07:18:24 +0000 (01:18 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Tue, 15 Jun 2010 07:18:24 +0000 (01:18 -0600)
The old patterns are no longer unique. Were setting the snapshot package
and version variables wrong.
Detect and use the formal PACKAGE_FOO=FOO settings instead now.

mksnapshot.sh

index 95edffc2b80439f5bd79055cc23b5a6c6bd3c432..6c4209fea5b65bff264204fb2eb8cd80e4bf8b94 100755 (executable)
@@ -33,8 +33,8 @@ if [ ! -f $tmpdir/configure ]; then
 fi
 
 cd $tmpdir
-eval `grep "^ *VERSION=" configure | sed -e 's/-BZR//' | sed -e 's/-CVS//'`
-eval `grep "^ *PACKAGE=" configure`
+eval `grep "^ *PACKAGE_VERSION=" configure | sed -e 's/-BZR//' | sed -e 's/-CVS//' | sed -e 's/PACKAGE_//'`
+eval `grep "^ *PACKAGE_TARNAME=" configure | sed -e 's/_TARNAME//'`
 ed -s configure.in <<EOS
 g/${VERSION}-[A-Z]*/ s//${VERSION}-${date}/
 w