Some modifications made on update-website.sh

Anderson Lizardo andersonlizardo at yahoo.com.br
Sat Nov 8 10:17:36 PST 2003


Just a heads up: I've added some lines to update-website.sh to remove
files unecessary to website generation and that do not have to be on live
site.

A diff of my modifications is attached.

-- 
Anderson Lizardo
-------------- next part --------------
--- /usr/bin/update-website.sh	2003-11-06 20:26:52.000000000 -0700
+++ update-website.sh	2003-11-08 10:30:05.000000000 -0700
@@ -74,6 +74,9 @@
 
 cd $TMPDIR/www
 
+# Remove some files unecessary for website generation
+rm template.html news-template.txt alfs/alfs-template.html blfs/blfs-template.html hints/hints-template.html lfs/lfs-template.html
+
 # Now create the news pages
 
 # First create the archives
@@ -199,7 +202,7 @@
 # Generate list.html
 cd $TMPDIR/www/hints
 ./genlist.sh
-rm list-top.html list-bottom.html
+rm list-top.html list-bottom.html genlist.sh
 cd $TMPDIR/www/hints/downloads/files &&
 for i in $(ls PREVIOUS_FORMAT/*.txt); do ln -sf $i; done
 


More information about the website mailing list