[CS-Project-svn_notify] SF.net SVN: cs-project:[968] trunk/1.2/bin/convertimages.bash
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-07-30 14:45:47
|
Revision: 968 http://cs-project.svn.sourceforge.net/cs-project/?rev=968&view=rev Author: crazedsanity Date: 2009-07-30 14:45:39 +0000 (Thu, 30 Jul 2009) Log Message: ----------- Script used to convert *.png images to *.gif (requires the imagemagick package). Added Paths: ----------- trunk/1.2/bin/convertimages.bash Added: trunk/1.2/bin/convertimages.bash =================================================================== --- trunk/1.2/bin/convertimages.bash (rev 0) +++ trunk/1.2/bin/convertimages.bash 2009-07-30 14:45:39 UTC (rev 968) @@ -0,0 +1,19 @@ +#!/bin/bash + +PATTERN=$1 + + +for F in `ls $PATTERN*.png` +do + name=`echo "$F" | sed -e "s/.png$/.gif/"` + echo -n $name + convert $F $name + echo -n ".." + rm $F + echo -n ".." + svn add $name > /dev/null + echo -n ".." + svn rm $F > /dev/null + echo -n ".." + echo " DONE" +done; Property changes on: trunk/1.2/bin/convertimages.bash ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |