SVN Commit by dpage: r4739 - trunk/pgadmin3/pkg/src - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by dpage: r4739 - trunk/pgadmin3/pkg/src
Date
Msg-id 200511112125.jABLP5LT019511@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
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


pgadmin-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: Registry
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4740 - trunk/pgadmin3