[pLog-svn] r6707 - plugins/branches/lifetype-1.2/bin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Jul 25 12:44:47 EDT 2008


Author: jondaley
Date: 2008-07-25 12:44:46 -0400 (Fri, 25 Jul 2008)
New Revision: 6707

Modified:
   plugins/branches/lifetype-1.2/bin/build.sh
Log:
sourceforge's upload mechanism changed.  Need to play with it some more

Modified: plugins/branches/lifetype-1.2/bin/build.sh
===================================================================
--- plugins/branches/lifetype-1.2/bin/build.sh	2008-07-25 15:59:39 UTC (rev 6706)
+++ plugins/branches/lifetype-1.2/bin/build.sh	2008-07-25 16:44:46 UTC (rev 6707)
@@ -49,11 +49,15 @@
 # get the name of the plugin that we're trying to build
 if [ "${1:-}" == "noupload" ]; then
   message "Building, not uploading";
-  UPLOAD=0
+  UPLOAD=""
   TEMPLATENAME=$2
 else
-  message "Building and uploading";
-  UPLOAD=1
+  message "Building and uploading, please type your sourceforge username"
+  read UPLOAD
+  if [ "${UPLOAD:-}" == "" ]; then
+    error "A sourceforge username is required to upload, or else use 'noupload'."
+    exit
+  fi
   TEMPLATENAME=$1
 fi
 
@@ -83,14 +87,16 @@
 	zip -r ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip $TEMPLATENAME
 fi
 
-if [ "$UPLOAD" == "1" ]; then
+if [ "$UPLOAD" != "" ]; 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/
+#    curl -Q "cd uploads" --upload-file ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip -u $UPLOAD sftp://frs.sourceforge.net
   else
-    ftp -a -u ftp://upload.sourceforge.net/incoming/${VERSION}_${TEMPLATENAME}.zip ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip
+# I think only oscar used this - he'll need to fix it
+#    ftp -a -u ftp://upload.sourceforge.net/incoming/${VERSION}_${TEMPLATENAME}.zip ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip
+    echo "fix me.  Sourceforge changed how they do uploads"
   fi
 fi
 



More information about the pLog-svn mailing list