1999-01-09 18:59:58 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Make a snapshot of the CVS head revision for the gnupg webpages
|
1999-02-13 12:19:14 +01:00
|
|
|
# and put them into the FTP directory (so that the mirrors w/o rsync
|
|
|
|
# can access them
|
|
|
|
|
1999-01-09 18:59:58 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $HOME/pub
|
|
|
|
|
|
|
|
|
|
|
|
fix_it () {
|
|
|
|
dir=$1
|
|
|
|
|
|
|
|
cat <<EOF >$dir/NEWS
|
|
|
|
[ This is a snapshot of the NEWS file from the CVS head revision.
|
|
|
|
You will find the NEWS for the latest revision below the line
|
|
|
|
"Noteworthy changes in version 0.x.y".
|
1999-02-13 12:19:14 +01:00
|
|
|
(wk $(date +%Y-%m-%d)) ]
|
1999-01-09 18:59:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cvs -Q checkout -p gnupg/NEWS >>$dir/NEWS
|
1999-02-22 20:08:46 +01:00
|
|
|
cvs -Q checkout -p gnupg/BUGS >>$dir/BUGS
|
1999-02-10 17:22:40 +01:00
|
|
|
here=`pwd`
|
|
|
|
cd $dir
|
|
|
|
ln -sf gnupg.html index.html
|
1999-02-22 20:08:46 +01:00
|
|
|
sed -n '1,/@BEGIN_BUGLIST@/ p' buglist.html >buglist.tmp
|
|
|
|
sed '1,/^~~~~~~~~~~~/ d' BUGS >>buglist.tmp
|
1999-02-22 20:14:15 +01:00
|
|
|
echo "(List generated from CVS: " $(date +%Y-%m-%d) ")" >>buglist.tmp
|
1999-02-22 20:08:46 +01:00
|
|
|
sed -n '/@END_BUGLIST@/,$ p' buglist.html >>buglist.tmp
|
|
|
|
mv buglist.tmp buglist.html
|
1999-02-10 17:22:40 +01:00
|
|
|
cd $here
|
1999-01-09 18:59:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
do_export () {
|
|
|
|
pgm=$1
|
|
|
|
mod=$2
|
|
|
|
|
|
|
|
rm -rf $pgm.new || true
|
|
|
|
rm -rf $pgm.old || true
|
|
|
|
cvs -Q export -r HEAD -d $pgm.new $mod
|
|
|
|
fix_it $pgm.new
|
|
|
|
[ -d $pgm ] && mv $pgm $pgm.old
|
|
|
|
if ! mv $pgm.new $pgm ; then
|
|
|
|
echo "rename failed - restoring" >&2
|
|
|
|
mv $pgm.old $pgm
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
rm -rf $pgm.old || true
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
do_export gnupg-www gnupg-www
|
|
|
|
|
1999-02-13 12:19:14 +01:00
|
|
|
cd gnupg-www
|
|
|
|
tar czf /home/ftp/pub/gcrypt/old/webpages.tmp *
|
|
|
|
mv /home/ftp/pub/gcrypt/old/webpages.tmp /home/ftp/pub/gcrypt/old/webpages.tar.gz
|
|
|
|
|
1999-01-09 18:59:58 +01:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|