diff options
Diffstat (limited to 'tools/update')
-rwxr-xr-x | tools/update | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/update b/tools/update new file mode 100755 index 0000000..b4f8d9c --- /dev/null +++ b/tools/update @@ -0,0 +1,22 @@ +#!/bin/sh +# shell script for updating XaoS example files to latest file format. +# Not for normal use +# Requires XaoS compiled with aa driver + +echo "$0" +cat $0 | head -4 | tail -3 | sed s/"^# "/""/ +echo -n "Do you really want to do this? [n] " +read A +if [ "$A" != "y" ]; then + exit 1 + fi + +cd .. +mkdir new +mkdir new/examples +rm fract0.xpf +for name in examples/*.xpf +do + echo "zs2qq" | bin/xaos -driver aa -aadriver stdout -kbddriver stdin -load $name -nomouse + mv fract0.xpf new/$name +done |