Created
July 30, 2014 13:24
-
-
Save jhrcz/2fdb66a138789149fb62 to your computer and use it in GitHub Desktop.
one-onetemplate-dump
This file contains hidden or 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
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