[Fwd: LFS Mirror]

Anderson Lizardo andersonlizardo at yahoo.com.br
Sat Nov 8 13:04:19 PST 2003


On Sat, 08 Nov 2003 16:57:58 -0400, Anderson Lizardo wrote:

Forgot to attach the diff. Attached now.

-- 
Anderson Lizardo
-------------- next part --------------
--- update-website.sh	2003-11-08 13:27:20.000000000 -0700
+++ /usr/bin/update-website.sh	2003-11-08 13:37:48.000000000 -0700
@@ -77,6 +77,19 @@
 # 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
 
+# Create mirrors list for each section
+cat index-top.html > index.html
+cat mirrorlist.html >> index.html
+cat index-bottom.html >> index.html
+rm index-{top,bottom}.html
+for i in alfs blfs hints lfs patches; do
+    cat $i/index-top.html > $i/index.html
+    sed "s@/lfs/news.html@/$i/news.html at g" mirrorlist.html >> $i/index.html
+    cat $i/index-bottom.html >> $i/index.html
+    rm $i/index-{top,bottom}.html
+done
+rm mirrorlist.html
+
 # Now create the news pages
 
 # First create the archives


More information about the website mailing list