cvs commit: www/scripts update-website.sh

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Wed Jan 7 02:51:43 PST 2004


jeroen      04/01/07 03:51:43

  Modified:    scripts  update-website.sh
  Log:
  update-website.sh: use tar to replace the old with the new site.
  
  Revision  Changes    Path
  1.13      +7 -3      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- update-website.sh	30 Dec 2003 19:12:51 -0000	1.12
  +++ update-website.sh	7 Jan 2004 10:51:43 -0000	1.13
  @@ -205,13 +205,17 @@
   cp -a $TARGETDIR/alfs/{downloads,view} alfs/
   cp -a $TARGETDIR/patches/{lfs,blfs} patches/
   
  -
   #################################################
   # 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
  -mv $NEWSITE $TARGETDIR
  +tar cPf website-backup.tar $TARGETDIR 2>&1 > /dev/null &&
  +#rm -rf $TARGETDIR &&
  +#mv $NEWSITE/* $TARGETDIR
  +
  +tar -cC $NEWSITE . | tar  -xC $TARGETDIR
  +
  +# Add the timestamp for mirrors
   mkdir -p $TARGETDIR/timestamp
   date +%s > $TARGETDIR/timestamp/timestamp
   rm -rf $TMPDIR
  
  
  



More information about the website mailing list