summaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-11-27 06:26:29 +0000
committerpeter <peter@FreeBSD.org>1995-11-27 06:26:29 +0000
commit9aa0b460b2af1127cd307e4ea73b5005ab96daa2 (patch)
tree3509c2afc69703ba3fa7358fe5673f073a6da736 /CVSROOT
parente6d817e24fce3292ed09b205a4f0005831c2ab65 (diff)
downloadFreeBSD-ports-9aa0b460b2af1127cd307e4ea73b5005ab96daa2.zip
FreeBSD-ports-9aa0b460b2af1127cd307e4ea73b5005ab96daa2.tar.gz
Some preliminary steps to automate the update of the various special files
in CVSROOT. The idea being that the modules file is changed to run updateCVSROOT instead of mkmodules. This will eventually do the necessary syncing that is currently done manually.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/mkavail4
-rwxr-xr-xCVSROOT/updateCVSROOT26
2 files changed, 28 insertions, 2 deletions
diff --git a/CVSROOT/mkavail b/CVSROOT/mkavail
index 57c276c..fa21f74 100755
--- a/CVSROOT/mkavail
+++ b/CVSROOT/mkavail
@@ -3,8 +3,8 @@
# Perl module to convert a CVS avail file into a majordomo alias file.
#
-$MAILING_LIST = '/home/mail/cvs-committers';
-$AVAIL_FILE = '/home/ncvs/CVSROOT/avail';
+$MAILING_LIST = 'cvs-committers';
+$AVAIL_FILE = 'avail';
open (MAIL, ">$MAILING_LIST");
open (AVAIL, "<$AVAIL_FILE");
diff --git a/CVSROOT/updateCVSROOT b/CVSROOT/updateCVSROOT
new file mode 100755
index 0000000..3de3ee3
--- /dev/null
+++ b/CVSROOT/updateCVSROOT
@@ -0,0 +1,26 @@
+#! /bin/sh
+#
+# Called in place of mkmodules to take care of files mkmodules doesn't know.
+#
+# $Id$
+
+PATH=$PATH:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin
+export PATH
+
+FILELIST="avail mkavail commitcheck cvs_acls.pl commit_prep.pl log_accum.pl"
+FILELIST="${FILELIST} cvsedit edithook fixcvsroot"
+
+cd $1
+
+for i in $FILELIST
+do
+ find $i,v -newer $i -exec co -u $i
+done
+
+#find avail,v -newer cvs-committers -exec ./mkavail
+#cmp -s cvs-committers /home/mail/cvs-committers || {
+# echo "/home/mail/cvs-committers is different to \$CVSROOT/cvs-committers"
+# echo "please check to see what needs to be updated..."
+#}
+
+exec mkmodules $1
OpenPOWER on IntegriCloud