[pLog-svn] r6778 - plog/branches/lifetype-1.2/bin-devel

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Dec 22 14:09:38 EST 2008


Author: oscar
Date: 2008-12-22 14:09:37 -0500 (Mon, 22 Dec 2008)
New Revision: 6778

Modified:
   plog/branches/lifetype-1.2/bin-devel/build-plugins-all-svn.sh
Log:
forgot to use basename

Modified: plog/branches/lifetype-1.2/bin-devel/build-plugins-all-svn.sh
===================================================================
--- plog/branches/lifetype-1.2/bin-devel/build-plugins-all-svn.sh	2008-12-22 19:02:30 UTC (rev 6777)
+++ plog/branches/lifetype-1.2/bin-devel/build-plugins-all-svn.sh	2008-12-22 19:09:37 UTC (rev 6778)
@@ -12,13 +12,13 @@
 # The same CVS label must be used for both the plog_devel and plog_docs module.
 #
 
-TYPE=`echo -n $0 | cut -f2 -d-`
+TYPE=`basename $0 | cut -f2 -d-`
 
 #
 # server and repository path
 #
 SVNSERVER=http://devel.lifetype.net
-SVNREPO=/svn/plog/${TYPE}s
+SVNREPO=/svn/plog/$TYPE
 
 #
 # array with the files that we are going to remove before
@@ -53,7 +53,7 @@
     echo ""
 	echo "Usage: $0 label package-name"
 	echo ""
-	echo "If package-name is omitted, the name will be lifetype-${TYPE}s-<current_date>"
+	echo "If package-name is omitted, the name will be lifetype-$TYPE-<current_date>"
 	echo ""
 	echo "Use HEAD or TRUNK to indicate the main development branch"
     echo ""
@@ -67,7 +67,7 @@
 
 # if there was no package name parameter, then build one using the current date
 if [ $# -eq 1 ]; then
-    PACKAGENAME=lifetype-${TYPE}s-`date +%Y%m%d`
+    PACKAGENAME=lifetype-$TYPE-`date +%Y%m%d`
 else
     PACKAGENAME=$2
 fi



More information about the pLog-svn mailing list