1999-01-09 17:59:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Make a snapshot of the CVS head revision for the gnupg webpages
|
1999-02-13 11:19:14 +00:00
|
|
|
|
1999-01-09 17:59:58 +00:00
|
|
|
set -e
|
|
|
|
|
1999-09-30 12:40:01 +00:00
|
|
|
myhome="$HOME/pub"
|
|
|
|
pgm="gnupg-www"
|
|
|
|
mod="gnupg-www"
|
|
|
|
MKWEBSITE=$HOME/bin/mkwebsite
|
1999-05-23 17:17:09 +00:00
|
|
|
|
1999-09-30 12:40:01 +00:00
|
|
|
cd $myhome
|
1999-01-09 17:59:58 +00:00
|
|
|
|
1999-09-30 12:40:01 +00:00
|
|
|
rm -rf $pgm.tmp 2>/dev/null || true
|
|
|
|
rm -rf $pgm.new || true
|
|
|
|
mkdir $pgm.new || true
|
|
|
|
rm -rf $pgm.old || true
|
|
|
|
cvs -Q export -r HEAD -d $pgm.tmp $mod
|
|
|
|
cat <<EOF >$pgm.tmp/en/NEWS
|
1999-05-23 17:17:09 +00:00
|
|
|
[ 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
|
1999-09-30 12:40:01 +00:00
|
|
|
"Noteworthy changes in version 1.x.y".
|
1999-05-23 17:17:09 +00:00
|
|
|
(wk $(date +%Y-%m-%d)) ]
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|
1999-09-30 12:40:01 +00:00
|
|
|
cvs -Q checkout -p gnupg/NEWS >>$pgm.tmp/en/NEWS
|
|
|
|
cvs -Q checkout -p gnupg/BUGS | sed '1,/^~~~~~~~~~~~/ d' > $pgm.tmp/en/include-file-1.tmp
|
|
|
|
echo "(List generated from CVS: " $(date +%Y-%m-%d) ")" >> $pgm.tmp/en/include-file-1.tmp
|
|
|
|
cd $pgm.tmp
|
|
|
|
$MKWEBSITE --cvs --use-this-dir $myhome/$pgm.new
|
|
|
|
cd $myhome
|
1999-12-31 11:44:29 +00:00
|
|
|
cp -a gph $pgm.new/ || true
|
|
|
|
|
1999-09-30 12:40:01 +00:00
|
|
|
rm -rf $pgm.tmp || true
|
|
|
|
|
|
|
|
rm -rf $pgm.old || true
|
|
|
|
[ -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
|
1999-01-09 17:59:58 +00:00
|
|
|
|