cvs commit: www/scripts update-website.sh

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Wed Jan 7 09:41:34 PST 2004


lizardo     04/01/07 10:41:34

  Modified:    scripts  update-website.sh
  Log:
  update-website.sh: Minor changes.
  
  Revision  Changes    Path
  1.15      +6 -6      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- update-website.sh	7 Jan 2004 16:48:40 -0000	1.14
  +++ update-website.sh	7 Jan 2004 17:41:34 -0000	1.15
  @@ -169,8 +169,8 @@
   cvs -Q export -D now patches && mv patches downloads
   
   # Fetch current hints and create the hints tarball
  -[ ! -d $NEWSITE/hints/downloads ] && mkdir -p $NEWSITE/hints/downloads/
  -cd $NEWSITE/hints/downloads/ && cvs -Q export -D now hints 
  +mkdir -p $NEWSITE/hints/downloads/
  +cd $NEWSITE/hints/downloads/ && cvs -Q export -D now hints
   tar cjf hints.tar.bz2 hints/
   mv hints/ATTACHMENTS attachments
   mv hints/ files/
  @@ -209,10 +209,10 @@
   # Everything is in place now, so replace TARGETDIR with NEWSITE
   
   cd /var/tmp
  -tar cPf website-backup.tar $TARGETDIR 2>&1 > /dev/null && rm -rf $TARGETDIR
  -mkdir -p $TARGETDIR
  +tar cPf website-backup.tar $TARGETDIR && rm -rf $TARGETDIR
   
  -tar -cC $NEWSITE . | tar  -xC $TARGETDIR
  +mkdir -p $TARGETDIR
  +tar -cC $NEWSITE . | tar -xC $TARGETDIR
   
   # Add the timestamp for mirrors
   mkdir -p $TARGETDIR/timestamp
  @@ -226,7 +226,7 @@
   ln -sf 2columns.css style/screen.css
   
   # Set proper permissions
  -chmod -Rf g+w $TARGETDIR/ 
  +chmod -Rf g+w $TARGETDIR
   chgrp -Rf lfswww $TARGETDIR
   
   # Remove lock file
  
  
  



More information about the website mailing list