utilise un lien symbolique sur Panash
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user