From: | svn(at)pgadmin(dot)org |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | SVN Commit by dpage: r4739 - trunk/pgadmin3/pkg/src |
Date: | 2005-11-11 21:25:05 |
Message-ID: | 200511112125.jABLP5LT019511@developer.pgadmin.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | svn | 2005-11-11 21:35:39 | SVN Commit by dpage: r4740 - trunk/pgadmin3 |
Previous Message | Andreas Pflug | 2005-11-11 17:46:47 | Re: Registry |