From 2e38e1b4845d2404e76bd9bb993a7025a1ed693c Mon Sep 17 00:00:00 2001 From: Michael Beattie Date: Thu, 31 May 2001 12:52:49 +0000 Subject: [PATCH] added automatic updating of README.non-US for pandora, and mailing-lists.txton auric. --- cron.daily | 1 + cron.daily-non-US | 4 ++++ update-mailingliststxt | 13 +++++++++++++ update-mirrorlists | 1 + update-readmenonus | 13 +++++++++++++ vars | 1 + 6 files changed, 33 insertions(+) create mode 100755 update-mailingliststxt create mode 100755 update-readmenonus diff --git a/cron.daily b/cron.daily index 62511c0b..61f74db9 100755 --- a/cron.daily +++ b/cron.daily @@ -35,6 +35,7 @@ pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) update-bugdoctxt update-mirrorlists +update-mailingliststxt ################################################################################ diff --git a/cron.daily-non-US b/cron.daily-non-US index d827f417..770c6914 100755 --- a/cron.daily-non-US +++ b/cron.daily-non-US @@ -33,6 +33,10 @@ pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) ################################################################################ +update-readmenonus + +################################################################################ + cd $incoming rm -f REPORT katie -pak *.changes | direport | tee REPORT | \ diff --git a/update-mailingliststxt b/update-mailingliststxt new file mode 100755 index 00000000..85e0d8bb --- /dev/null +++ b/update-mailingliststxt @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Fetches latest copy of mailing-lists.txt +# Michael Beattie + +. vars + +cd $ftpdir/doc + +echo Updating archive version of mailing-lists.txt +wget -t1 -T20 q -N http://www.debian.org/misc/mailing-lists.txt || \ + echo "Some error occured..." + diff --git a/update-mirrorlists b/update-mirrorlists index 4e984f28..b68a870c 100755 --- a/update-mirrorlists +++ b/update-mirrorlists @@ -23,6 +23,7 @@ if [ ! -f $ftpdir/README.mirrors.html -o $masterlist -nt $ftpdir/README.mirrors. if [ ! -f $ftpdir/README.non-US -o $masterlist -nt $ftpdir/README.non-US ] ; then rm -f $ftpdir/README.non-US $prog -m $masterlist -t nonus > $ftpdir/README.non-US + install -m 664 $ftpdir/README.non-US $webdir fi echo Updated archive version of mirrors file fi diff --git a/update-readmenonus b/update-readmenonus new file mode 100755 index 00000000..b90066ad --- /dev/null +++ b/update-readmenonus @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Fetches up to date copy of REAME.non-US for pandora +# Michael Beattie + +. vars-non-US + +cd $ftpdir + +echo Updating non-US version of README.non-US +wget -t1 -T20 -q -N http://ftp-master.debian.org/README.non-US || \ + echo "Some error occured..." + diff --git a/vars b/vars index 053f34f1..8451de50 100644 --- a/vars +++ b/vars @@ -1,6 +1,7 @@ # locations used by many scripts ftpdir=/org/ftp.debian.org/ftp +webdir=/org/ftp.debian.org/web indices=$ftpdir/indices archs="alpha arm hppa hurd-i386 i386 m68k powerpc sparc mips mipsel sh" -- 2.39.5