/[webwml]/cron/lessoften
ViewVC logotype

Contents of /cron/lessoften

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Tue Nov 30 04:26:48 2004 UTC (8 years, 5 months ago) by kraai
Branch: MAIN
Changes since 1.10: +5 -11 lines
Build the woody and sarge release notes from the DDP.
1 joy 1.1 #!/bin/bash
2    
3     # see README for more information
4    
5     umask 002
6     . /org/www.debian.org/cron/common.sh
7    
8     # locking
9     if lockfile -! -l 43200 -r 0 "$crondir/lessoften.lock"; then
10 kraai 1.10 echo `hostname` is unable to start update, lock file exists. >> $crondir/lessoften.log
11 joy 1.1 exit 1
12     fi
13     trap "rm -f $crondir/lessoften.lock" exit
14    
15     # rotate the previous log file
16     savelog $crondir/lessoften.log &> /dev/null
17    
18     echo "starting the lessoften cron job at `date`" > $crondir/lessoften.log
19    
20     echo "creating mailing-lists.txt..." >> $crondir/lessoften.log
21     make -s -C $webtopdir/webwml/english/MailingLists mailing-lists.txt
22     install -m 664 -g debwww \
23     $webtopdir/webwml/english/MailingLists/mailing-lists.txt \
24     $webdir/misc/mailing-lists.txt
25    
26     echo "copying events/materials/ in place..." >> $crondir/lessoften.log
27     install -d -m 2775 -g debwww $webdir/events/materials
28     cp -a $webtopdir/events-materials/* $webdir/events/materials/
29    
30 kraai 1.11 for release in woody sarge; do
31     echo "rebuilding the release notes for $release" >> $crondir/lessoften.log
32     make -C $webtopdir/release-notes/$release publish \
33     PUBLISHDIR=$webtopdir/www/releases/$release >> $crondir/lessoften.log
34     done
35 joy 1.1
36     # previously in parts/1l10ndata, from bouz
37     cd $crondir/datafiles/
38     echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log
39 kraai 1.10 wget -q -N http://people.debian.org/~pmachard/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable!" >> $crondir/lessoften.log; exit 1; }
40 joy 1.3 gunzip -c -f unstable.gz > unstable.gluck
41     ln -sf $crondir/datafiles/unstable.gluck $webtopdir/webwml/english/international/l10n/data/unstable.gluck
42 joy 1.1
43     # cleanup
44     rm -f unstable.gz
45    
46     echo "extracting the list of languages..." >> $crondir/lessoften.log
47     cd $webtopdir/webwml/english/international/l10n
48 kraai 1.5 ./scripts/list-languages.pl data/unstable.gluck > data/langs
49 debwww 1.2
50     # the below scripts will echo what they are doing themselves
51     $crondir/people_scripts/update.packages+sources >> $crondir/lessoften.log
52     $crondir/people_scripts/update.people.html >> $crondir/lessoften.log
53 joy 1.1
54     echo " ** lessoften cron job done *** " >> $crondir/lessoften.log

  ViewVC Help
Powered by ViewVC 1.1.5