Author: dpage
Date: 2005-11-11 21:25:05 +0000 (Fri, 11 Nov 2005)
New Revision: 4739
Modified:
trunk/pgadmin3/pkg/src/build-tarball
Log:
Grep the version number from version.h
Modified: trunk/pgadmin3/pkg/src/build-tarball
===================================================================
--- trunk/pgadmin3/pkg/src/build-tarball 2005-11-11 18:26:56 UTC (rev 4738)
+++ trunk/pgadmin3/pkg/src/build-tarball 2005-11-11 21:25:05 UTC (rev 4739)
@@ -35,6 +35,9 @@
# Fixup the line ends in the VC++ project files
/usr/bin/perl -wlpi -e 's/$/\r/' src/pgAdmin3.ds{p,w}
+# Get the version
+VERSION=`grep '#define VERSION_PACKAGE' src/include/version.h | awk '{print $3}'`
+
# Bootstrap
/bin/sh bootstrap
@@ -43,7 +46,7 @@
# Make and store the source tarball
make dist
-if [ -e pgadmin3-1.5.0.tar.gz ]; then
- mv pgadmin3-1.5.0.tar.gz /var/www/developer.pgadmin.org/snapshots/src/pgadmin3-src-`/usr/bin/date +%Y%m%d`.tar.gz
+if [ -e pgadmin3-$VERSION.tar.gz ]; then
+ mv pgadmin3-$VERSION.tar.gz /var/www/developer.pgadmin.org/snapshots/src/pgadmin3-src-`/usr/bin/date
+%Y%m%d`.tar.gz
ln -s -f src/pgadmin3-src-`/usr/bin/date +%Y%m%d`.tar.gz
/var/www/developer.pgadmin.org/snapshots/pgadmin3-src.tar.gz
fi