/[webwml]/cron/lessoften
ViewVC logotype

Contents of /cron/lessoften

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.21 - (hide annotations) (download)
Fri Oct 20 14:13:28 2006 UTC (6 years, 7 months ago) by djpig
Branch: MAIN
Changes since 1.20: +3 -3 lines
Disable download of l10n data that isn't currently available
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 djpig 1.19 # build installation guide for etch
31     cd $crondir/tmp
32     igdsc=`ls -t1 $ftpdir/pool/main/i/installation-guide/installation-guide_*.dsc | head -1`
33 djpig 1.20 igdir=`basename "$igdsc" |
34     sed -e 's/installation-guide_/installation-guide-/' -e 's/\.dsc//'`
35 djpig 1.19 if [ "$igdsc" -nt $webtopdir/installmanual/etch.log ]; then
36     echo "extracting installation-guide source..." >> $crondir/lessoften.log
37     [ -d "$igdir" ] && rm -fr "$igdir"
38     dpkg-source -sn -x "$igdsc" >> $crondir/lessoften.log
39     if [ -d "$igdir" ]; then
40     echo "building installation-guide for etch..." >> $crondir/lessoften.log
41     cd $igdir/build &&
42     manual_release=etch destination=$webtopdir/installmanual/etch/ ./buildweb.sh > $webtopdir/installmanual/etch.log 2>&1
43     fi
44 djpig 1.20 else
45     echo no new installation-guide for etch, skipping build >> $crondir/lessoften.log
46 djpig 1.19 fi
47    
48     for dist in sarge etch; do
49     echo "copying $dist installmanual in place..." >> $crondir/lessoften.log
50     cp -a $webtopdir/installmanual/$dist/* $webdir/releases/$dist/
51     done
52 djpig 1.15
53 joy 1.1 # previously in parts/1l10ndata, from bouz
54 djpig 1.16 [ -d $crondir/datafiles ] || mkdir -p $crondir/datafiles
55     cd $crondir/datafiles
56 joy 1.1 echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log
57 djpig 1.21 #wget -q -N http://people.debian.org/~pmachard/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable!" >> $crondir/lessoften.log; exit 1; }
58     #gunzip -c -f unstable.gz > unstable.gluck
59     #ln -sf $crondir/datafiles/unstable.gluck $webtopdir/webwml/english/international/l10n/data/unstable.gluck
60 kraai 1.18 wget -q -N http://popcon.debian.org/source/by_inst && ln -sf $crondir/datafiles/by_inst $webtopdir/webwml/english/international/l10n/data/popcon
61 joy 1.1
62     # cleanup
63     rm -f unstable.gz
64    
65     echo "extracting the list of languages..." >> $crondir/lessoften.log
66     cd $webtopdir/webwml/english/international/l10n
67 kraai 1.5 ./scripts/list-languages.pl data/unstable.gluck > data/langs
68 debwww 1.2
69 kraai 1.17 echo "cleaning up obsolete templates translation information" >> $crondir/lessoften.log
70     cd $webdir/international/l10n
71     find po po-debconf templates -type f -mtime +30 -exec rm -f \{\} \;
72    
73 debwww 1.2 # the below scripts will echo what they are doing themselves
74     $crondir/people_scripts/update.packages+sources >> $crondir/lessoften.log
75     $crondir/people_scripts/update.people.html >> $crondir/lessoften.log
76 joy 1.1
77     echo " ** lessoften cron job done *** " >> $crondir/lessoften.log

  ViewVC Help
Powered by ViewVC 1.1.5