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