small changes

This commit is contained in:
Atlas Cove 2023-02-06 01:56:56 +00:00
parent 5ac3bc048b
commit d6f4b6d414
2 changed files with 4 additions and 11 deletions

View File

@ -1,5 +1,6 @@
root=true
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true
insert_final_newline=true

View File

@ -11,7 +11,7 @@ function tape {
*.org) org-ruby --translate html $1 ;;
*.md) comrak --gfm $1 ;;
*.html) cat $1 ;;
*) pandoc --cols 168 -t html $i || echo "Skipping $i, unknown format" ;;
*) pandoc --columns 168 -t html $i || echo "Skipping $i, unknown format" ;;
esac
}
function yn {
@ -28,7 +28,7 @@ function yn {
}
cd ..
files=(`find -not -path './_*'`)
files=(`find -not -path './_*' -not -path './css'`)
for i in ${files[@]}; do
echo $i
if test -d $i; then
@ -37,16 +37,8 @@ for i in ${files[@]}; do
else continue
fi
elif test -f $i; then
if ! grep -q '.s[ac]ss' "$i"; then
sass=+($i)
continue
fi
tape $i | sed 's/^\s\{1,4\}//' | m4 -DTITLE="$(${prog[title]} $i)" -DLIB=${prog[lib]} ${prog[m4]} > ../${i%.*}.html
else
echo "Skipping $i, unknown file type"
fi
done
if ! ( test -z ${css[@]} ) && yn "Run rcss.sh?"; then
_tape/rcss.sh ${css[@]}
fi