Skip to content

Instantly share code, notes, and snippets.

@jhrcz
Created July 30, 2014 13:24
Show Gist options
  • Save jhrcz/2fdb66a138789149fb62 to your computer and use it in GitHub Desktop.
Save jhrcz/2fdb66a138789149fb62 to your computer and use it in GitHub Desktop.
one-onetemplate-dump
all: clean dump commit ok
dump:
onetemplate list --list ID | grep -v ID | while read id rest ; do onetemplate show $$id > $$id.xml ; done
clean:
rm *.xml
commit:
git add -u
git add *.xml
git status | grep 'nothing to commit' || git commit -v -m "$$(date +%s)"
ok:
echo done:OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment