generate with css and img

This commit is contained in:
rick 2022-04-02 16:02:09 +02:00
parent bd33cc253d
commit 310e20fa6c

View file

@ -18,11 +18,20 @@
# liste des fichiers html à générer
files="autres.html copaings.html index.html ou.html projets.html rss.html"
annexes="css img"
target="www"
header="header.html"
footer="footer.html"
if [ -d $target ]
then
# TODO demander à l'utilisateur
rm -rf $target
fi
mkdir $target
for i in ${files}
do
echo "Generate $i..."
@ -32,3 +41,5 @@ do
cat $footer >> $file
sed -i s/%file%/$i/ $file
done
cp -t $target -r $annexes