small changes
This commit is contained in:
parent
5ac3bc048b
commit
d6f4b6d414
@ -1,5 +1,6 @@
|
|||||||
root=true
|
root=true
|
||||||
[*]
|
[*]
|
||||||
|
charset=utf-8
|
||||||
end_of_line=lf
|
end_of_line=lf
|
||||||
trim_trailing_whitespace=true
|
trim_trailing_whitespace=true
|
||||||
insert_final_newline=true
|
insert_final_newline=true
|
@ -11,7 +11,7 @@ function tape {
|
|||||||
*.org) org-ruby --translate html $1 ;;
|
*.org) org-ruby --translate html $1 ;;
|
||||||
*.md) comrak --gfm $1 ;;
|
*.md) comrak --gfm $1 ;;
|
||||||
*.html) cat $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
|
esac
|
||||||
}
|
}
|
||||||
function yn {
|
function yn {
|
||||||
@ -28,7 +28,7 @@ function yn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
files=(`find -not -path './_*'`)
|
files=(`find -not -path './_*' -not -path './css'`)
|
||||||
for i in ${files[@]}; do
|
for i in ${files[@]}; do
|
||||||
echo $i
|
echo $i
|
||||||
if test -d $i; then
|
if test -d $i; then
|
||||||
@ -37,16 +37,8 @@ for i in ${files[@]}; do
|
|||||||
else continue
|
else continue
|
||||||
fi
|
fi
|
||||||
elif test -f $i; then
|
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
|
tape $i | sed 's/^\s\{1,4\}//' | m4 -DTITLE="$(${prog[title]} $i)" -DLIB=${prog[lib]} ${prog[m4]} > ../${i%.*}.html
|
||||||
else
|
else
|
||||||
echo "Skipping $i, unknown file type"
|
echo "Skipping $i, unknown file type"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! ( test -z ${css[@]} ) && yn "Run rcss.sh?"; then
|
|
||||||
_tape/rcss.sh ${css[@]}
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user