Created
November 13, 2009 14:38
-
-
Save ihoka/233864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mockupsApp=$BALSAMIQ_APP; | |
cdir=`pwd`; | |
for f in `git status | egrep 'new file:|modified:' | egrep '.bmml' | awk '{ gsub(/.*(modified:|new file:) /, "./"); print }'`; | |
do | |
infile=`echo ${cdir}/${f} | awk '{gsub(/%20/, "\ ");print}'`; | |
outfile=`echo $infile | awk '{sub(/bmml/,"png");print}'`; | |
echo "Converting $infile to $outfile"; | |
`"$mockupsApp" export "$infile" "$outfile" &> /dev/null`; | |
done | |
find . -name "*.png" -exec echo \"{}\" \; | xargs git add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./balsamiq_export.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment