about summary refs log tree commit diff stats
path: root/shabby
diff options
context:
space:
mode:
Diffstat (limited to 'shabby')
-rwxr-xr-xshabby14
1 files changed, 14 insertions, 0 deletions
diff --git a/shabby b/shabby new file mode 100755 index 0000000..277d021 --- /dev/null +++ b/shabby
@@ -0,0 +1,14 @@
1#!/bin/sh
2T=tmpl
3alias c=cat q=test e=echo
4rm -rf o;mkdir -p o
5q -e $T||e '`<$F`'>$T
6q -d st&&cp -r st o/
7x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";}
8for F in c/*;do
9q -e "$F"&& (
10FN="${F##*/}"
11TT="$(head -n1 "$P")"
12BD="$(tail -n+2 "$P")"
13x $T>"o/$FN")
14done