[pLog-svn] r6423 - templates/branches/lifetype-1.2/bin

Jon Daley plogworld at jon.limedaley.com
Thu May 1 14:25:47 EDT 2008


 	Wow.  releaseforge is the program I had heard about.  There is one 
bug in it, so it took a little bit to get it working, but it was well 
worth it.  I just uploaded all of the template files, in way less time 
than it takes to navigate the sourceforge interface.  If you upload files 
to sourceforge, you need to download this app.

Bug report, and patch is here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478919


On Thu, 1 May 2008, jondaley at devel.lifetype.net wrote:

> 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!"
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

I haven't lost my mind; I have a tape backup somewhere.


More information about the pLog-svn mailing list