site-neo/src/_tape/render.sh

15 lines
295 B
Bash
Raw Normal View History

2022-09-24 22:07:46 +00:00
#!/bin/bash
2022-10-04 21:42:16 +00:00
# render.sh: part of the tape-and-string framework.
2023-01-21 23:40:35 +00:00
# v2.0
2023-01-21 23:23:04 +00:00
cd ..
2023-01-21 23:40:35 +00:00
files=(`find -not -path '_*'`)
for i in ${files[@]}; do
if test -d $i; then
mkdir -p ../$i
elif test -f $i; then
2023-02-01 14:38:31 +00:00
tape $i | m4 -DTITLE=`${prog[title]} $i` .
2023-01-21 23:40:35 +00:00
else
echo "Skipping $i, unknown file type"
fi
2022-09-24 22:07:46 +00:00
done