utilise un lien symbolique sur Panash

This commit is contained in:
Yannick Francois
2019-09-23 23:01:29 +02:00
parent 1986f5bb97
commit 4775c7ddef
-23
View File
@@ -1,23 +0,0 @@
#!/bin/sh
#
MARKDOWN_FILES=$(find src -name \*.md)
for mdfile in $MARKDOWN_FILES; do
htmlfile="${mdfile%%.*}.html"
if [ ! -f "$htmlfile" ] || [ "$mdfile" != "$htmlfile" ]; then
echo "--> generate '$htmlfile' from '$mdfile'"
pandoc --template=lib/template.html -c lib/pandoc.css "$mdfile" -o "$htmlfile"
fi
done
echo "--> copy html files to public dir"
#HTML_FILES=$(find src -name \*.html)
#cp --parents src/*.html public
(cd src && cp -r --parent . ../public)
#(cd src && find . -name \*.html -exec cp --parents {} ../public \;)
exit 0
Symlink
+1
View File
@@ -0,0 +1 @@
../panash/pana.sh