generate with css and img
This commit is contained in:
parent
bd33cc253d
commit
310e20fa6c
1 changed files with 11 additions and 0 deletions
11
generate.sh
11
generate.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue