r803 - trunk/scripts

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Sat Jul 24 11:54:59 PDT 2004


Author: lizardo
Date: 2004-07-24 12:54:58 -0600 (Sat, 24 Jul 2004)
New Revision: 803

Modified:
   trunk/scripts/update-website.sh
Log:
BLFS converted to Subversion and some small changes.


Modified: trunk/scripts/update-website.sh
===================================================================
--- trunk/scripts/update-website.sh	2004-07-24 12:31:37 UTC (rev 802)
+++ trunk/scripts/update-website.sh	2004-07-24 18:54:58 UTC (rev 803)
@@ -16,7 +16,6 @@
 ##########################################
 # Set variables, create working dirs     #
 
-export CVSROOT="/home/cvsroot"
 SVN="svn://svn.linuxfromscratch.org"
 
 # Temporary dir for assembling the site
@@ -25,14 +24,7 @@
 NEWSITE="$TMPDIR/NEWSITE"
 svn -q export $SVN/www/trunk $NEWSITE
 
-TMPCVS="$TMPDIR/TMPCVS"
-mkdir $TMPCVS
-cd $TMPCVS
-
-cvs -Q co BLFS/BOOK && export BLFS="$TMPCVS/BLFS/BOOK"
-
 SCRIPTS="$NEWSITE/scripts"
-CL2HTML="$SCRIPTS/cl2html.pl"
 MANAGE_NEWS="$SCRIPTS/manage_news.pl"
 SVN2HTML="$SCRIPTS/svn2html.pl"
 SVN2HTML2="$SCRIPTS/svn2html2.pl"
@@ -43,11 +35,6 @@
 ##############################################
 # Generate all changelogs for the news pages #
 
-for i in "$BLFS/"
-	do cd $i
-	$SCRIPTS/cvs2cl.pl -P --xml -l "-d'1 month ago<today'"
-done
-
 cd $NEWSITE
 
 # Generate all archives
@@ -55,7 +42,7 @@
 for y in 2003 2004; do
     for i in . lfs alfs blfs hints; do
         # "LC_ALL=C" garantees a sane localization setting
-        LC_ALL=C $MANAGE_NEWS -a news/ -t templates/$i/archive-top.html -b templates/$i/archive-bottom.html -i $i/news-$y.txt
+        LC_ALL=C $MANAGE_NEWS -a news/ -t $TEMPLATES/$i/archive-top.html -b $TEMPLATES/$i/archive-bottom.html -i $i/news-$y.txt
     done
 done
 
@@ -86,11 +73,7 @@
 cp $TEMPLATES/blfs/news-top.html news.html
 $MANAGE_NEWS -i news-$YEAR.txt >> news.html
 $MANAGE_NEWS -i ../news-$YEAR.txt >> news.html
-if [ -f $BLFS/ChangeLog ]; then
-    $CL2HTML --infile $BLFS/ChangeLog >> news.html
-else
-    echo "<p>No changes were made recently.</p>" >> news.html
-fi
+$SVNLOG $SVN/BLFS 2>/dev/null | $SVN2HTML --with-branchname >> news.html
 cat $TEMPLATES/blfs/news-bottom.html >> news.html 
 
 # Hints/news.html
@@ -186,11 +169,11 @@
 
 mkdir -p $TARGETDIR
 tar -cC $NEWSITE . | tar -xC $TARGETDIR
+rm -rf $TMPDIR
 
 # Add the timestamp for mirrors
 mkdir -p $TARGETDIR/timestamp
 date +%s > $TARGETDIR/timestamp/timestamp
-rm -rf $TMPDIR
 
 # Add some compatibility symlinks
 cd $TARGETDIR




More information about the website mailing list