[pLog-svn] r6423 - templates/branches/lifetype-1.2/bin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu May 1 14:19:55 EDT 2008
Author: jondaley
Date: 2008-05-01 14:19:55 -0400 (Thu, 01 May 2008)
New Revision: 6423
Modified:
templates/branches/lifetype-1.2/bin/build.sh
Log:
added noupload parameter for just building the zips.
Modified: templates/branches/lifetype-1.2/bin/build.sh
===================================================================
--- templates/branches/lifetype-1.2/bin/build.sh 2008-04-29 14:23:47 UTC (rev 6422)
+++ templates/branches/lifetype-1.2/bin/build.sh 2008-05-01 18:19:55 UTC (rev 6423)
@@ -53,14 +53,23 @@
if [ $# -lt 1 ]; then
echo "Makes a zip package of a given template folder"
echo ""
- echo "Usage: build.sh template"
+ echo "Usage: build.sh [noupload] template"
echo ""
echo "Use 'all' in order to generate a package of all the template sets"
exit -1
fi
+
# get the name of the template that we're trying to build
-TEMPLATENAME=$1
+if [ "${1:-}" == "noupload" ]; then
+ message "Building, not uploading";
+ UPLOAD=0
+ TEMPLATENAME=$2
+else
+ message "Building and uploading";
+ UPLOAD=1
+ TEMPLATENAME=$1
+fi
# a temporary working folder like any other...
TMPFOLDER=${WORKFOLDER}`date | md5`
@@ -88,12 +97,14 @@
zip -r ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip ${TEMPLATENAME}/
fi
-# upload the package. Linux ftp (at least my version, doesn't have the -a command,
-# but I can use curl to do the same thing.
-if [ `uname` == "Linux" ]; then
- curl --upload-file ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip --user anonymous:lifetype-uploads at jon.limedaley.com ftp://upload.sf.net/incoming/
-else
- ftp -a -u ftp://upload.sourceforge.net/incoming/${VERSION}_${TEMPLATENAME}.zip ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip
+if [ "$UPLOAD" == "1" ]; then
+ # upload the package. Linux ftp (at least my version, doesn't have the -a command,
+ # but I can use curl to do the same thing.
+ if [ `uname` == "Linux" ]; then
+ curl --upload-file ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip --user anonymous:lifetype-uploads at jon.limedaley.com ftp://upload.sf.net/incoming/
+ else
+ ftp -a -u ftp://upload.sourceforge.net/incoming/${VERSION}_${TEMPLATENAME}.zip ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip
+ fi
fi
message "Done!"
More information about the pLog-svn
mailing list