/[webwml]/cron/lessoften
ViewVC logotype

Diff of /cron/lessoften

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by debwww, Thu Aug 7 18:17:35 2003 UTC revision 1.12 by kraai, Sun Dec 5 16:38:05 2004 UTC
# Line 7  umask 002 Line 7  umask 002
7    
8  # locking  # locking
9  if lockfile -! -l 43200 -r 0 "$crondir/lessoften.lock"; then  if lockfile -! -l 43200 -r 0 "$crondir/lessoften.lock"; then
10    echo `hostname` is unable to start update, lock file exists.    echo `hostname` is unable to start update, lock file exists. >> $crondir/lessoften.log
11    exit 1    exit 1
12  fi  fi
13  trap "rm -f $crondir/lessoften.lock" exit  trap "rm -f $crondir/lessoften.lock" exit
# Line 27  echo "copying events/materials/ in place Line 27  echo "copying events/materials/ in place
27  install -d -m 2775 -g debwww $webdir/events/materials  install -d -m 2775 -g debwww $webdir/events/materials
28  cp -a $webtopdir/events-materials/* $webdir/events/materials/  cp -a $webtopdir/events-materials/* $webdir/events/materials/
29    
30  #echo "rebuilding the potato release docs..." >> $crondir/lessoften.log  for release in woody sarge; do
31  #$webtopdir/bf/potato/cvsbuild >> $crondir/lessoften.log      echo "rebuilding the release notes for $release" >> $crondir/lessoften.log
32  #echo "copying potato release docs in place..." >> $crondir/lessoften.log      (cd $webtopdir/release-notes/$release && cvs -d -P update) >> $crondir/lessoften.log 2>&1
33  ## -f because of symlinks      make -C $webtopdir/release-notes/$release publish \
34  #cp -af $webtopdir/bf/potato/boot-floppies/documentation/arch/* $webdir/releases/potato/           PUBLISHDIR=$webtopdir/www/releases/$release >> $crondir/lessoften.log
35    done
 echo "rebuilding the woody release docs..." >> $crondir/lessoften.log  
 $webtopdir/bf/woody/cvsbuild >> $crondir/lessoften.log  
 echo "copying woody release docs in place..." >> $crondir/lessoften.log  
 # -f because of symlinks  
 cp -af $webtopdir/bf/woody/boot-floppies/documentation/arch/* $webdir/releases/woody/  
36    
37  # previously in parts/1l10ndata, from bouz  # previously in parts/1l10ndata, from bouz
38  cd $crondir/datafiles/  cd $crondir/datafiles/
39  echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log  echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log
40  wget -q -N http://ftp-master.debian.org/~barbier/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable on ftp-master!"; exit 1; }  wget -q -N http://people.debian.org/~pmachard/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable!" >> $crondir/lessoften.log; exit 1; }
41  gunzip -c -f unstable.gz > unstable.ftp-master  gunzip -c -f unstable.gz > unstable.gluck
42  ln -sf $crondir/datafiles/unstable.ftp-master $webtopdir/webwml/english/international/l10n/data/unstable.ftp-master  ln -sf $crondir/datafiles/unstable.gluck $webtopdir/webwml/english/international/l10n/data/unstable.gluck
   
 echo "updating the non-US database file used to display l10n stats..." >> $crondir/lessoften.log  
 wget -q -N http://non-us.debian.org/~barbier/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable on non-us!"; exit 1; }  
 gunzip -c -f unstable.gz > unstable.non-US  
 ln -sf $crondir/datafiles/unstable.non-US $webtopdir/webwml/english/international/l10n/data/unstable.non-US  
43    
44  # cleanup  # cleanup
45  rm -f unstable.gz  rm -f unstable.gz
46    
47  echo "extracting the list of languages..." >> $crondir/lessoften.log  echo "extracting the list of languages..." >> $crondir/lessoften.log
48  cd $webtopdir/webwml/english/international/l10n  cd $webtopdir/webwml/english/international/l10n
49  ./scripts/list-languages.pl data/unstable.ftp-master data/unstable.non-US > data/langs  ./scripts/list-languages.pl data/unstable.gluck > data/langs
50    
51  # the below scripts will echo what they are doing themselves  # the below scripts will echo what they are doing themselves
52  $crondir/people_scripts/update.packages+sources >> $crondir/lessoften.log  $crondir/people_scripts/update.packages+sources >> $crondir/lessoften.log

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.5