From 310e20fa6ced0009c718400dc718eace8bb2eefb Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 2 Apr 2022 16:02:09 +0200 Subject: [PATCH] generate with css and img --- generate.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/generate.sh b/generate.sh index 0bf8454..4e2ea96 100755 --- a/generate.sh +++ b/generate.sh @@ -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