Skip to content

Instantly share code, notes, and snippets.

@ihoka
Created November 13, 2009 14:38
Show Gist options
  • Save ihoka/233864 to your computer and use it in GitHub Desktop.
Save ihoka/233864 to your computer and use it in GitHub Desktop.
#!/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
#!/bin/sh
./balsamiq_export.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment