Author: wyoung
Date: Fri Jan 12 20:59:11 2007
New Revision: 1409

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1409&view=rev
Log:
Automatically detecting from the file name whether to upload to the test
subdir or the releases subdir of the remote site.

Modified:
    trunk/do-upload

Modified: trunk/do-upload
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/do-upload?rev=1409&r1=1408&r2=1409&view=diff
==============================================================================
--- trunk/do-upload (original)
+++ trunk/do-upload Fri Jan 12 20:59:11 2007
@@ -17,6 +17,13 @@
 fi
 
 VERSION=`cat mysql++.spec | grep ^Version: | cut -f2 -d' '`
+case "$VERSION" in
+       *alpha*) SSH_TARGET=$SSH_TARGET/test ;;
+       *beta*) SSH_TARGET=$SSH_TARGET/test ;;
+       *rc[0-9]*) SSH_TARGET=$SSH_TARGET/test ;;
+       *) SSH_TARGET=$SSH_TARGET/releases ;;
+esac
+
 TMPDIR=`mktemp -d /tmp/mysqlpp-up.XXXXXXXXXX`
 
 if [ "$1" = "src" ]


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to