aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2004-06-09 05:57:01 +0800
committermurray <murray@FreeBSD.org>2004-06-09 05:57:01 +0800
commitf35c63287a2acf5807709f4deb0ad35240b41669 (patch)
tree65e5a4ffefd5d0b5ac7353984ea407c951cd9953 /Tools/scripts
parent4af749ef2ecce2bacf36cfb91e016bae67c51cfd (diff)
downloadfreebsd-ports-gnome-f35c63287a2acf5807709f4deb0ad35240b41669.tar.gz
freebsd-ports-gnome-f35c63287a2acf5807709f4deb0ad35240b41669.tar.zst
freebsd-ports-gnome-f35c63287a2acf5807709f4deb0ad35240b41669.zip
Modernize these two scripts a little bit to make it easier to deal
with 5.X or 4.X package sets (i.e., INDEX vs INDEX-5 and tgz vs tbz) OKed by: marcus
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/release/doit.sh10
-rwxr-xr-xTools/scripts/release/scrubindex.pl12
2 files changed, 16 insertions, 6 deletions
diff --git a/Tools/scripts/release/doit.sh b/Tools/scripts/release/doit.sh
index 3e6b54947e02..96f42885d51f 100755
--- a/Tools/scripts/release/doit.sh
+++ b/Tools/scripts/release/doit.sh
@@ -22,7 +22,8 @@ fi
pkgs="$ports/packages/All"
scripts="$dir"
xdep_re="^XFree86-3.3.6_1[0-9]$"
-
+#indexfile="INDEX-5"
+indexfile="INDEX"
#
##############################################################################
@@ -67,9 +68,9 @@ if [ ! -f "$logs/.cdrom.done" ]; then
touch $logs/.cdrom.done
fi
-if [ ! -f "$logs/INDEX" ]; then
- echo "===> copying INDEX file"
- $scripts/scrubindex.pl $pkgs $ports/INDEX > $logs/INDEX
+if [ ! -f "$logs/$indexfile" ]; then
+ echo "===> copying INDEX file from $ports/$indexfile"
+ $scripts/scrubindex.pl $pkgs $ports/$indexfile > $logs/INDEX
$scripts/checkdeps.pl $pkgs $logs/INDEX | sort -u | \
sed -e 's/^/missing dependency: /'
fi
@@ -96,6 +97,7 @@ if [ X$ans != Xn -a X$ans != XN ]; then
echo "===> deleting scratch"
rm -rf scratch
fi
+ echo "Calling oneshot.pl config $logs/need.ALL $logs/INDEX $ports $pkgs/../ $dists"
$scripts/oneshot.pl config $logs/need.ALL $logs/INDEX $ports $pkgs/../ $dists
for disc in `ls -d disc? 2>/dev/null`; do
echo "===> cleaning $disc"
diff --git a/Tools/scripts/release/scrubindex.pl b/Tools/scripts/release/scrubindex.pl
index c498bcc10423..608d4d359a24 100755
--- a/Tools/scripts/release/scrubindex.pl
+++ b/Tools/scripts/release/scrubindex.pl
@@ -5,6 +5,12 @@ die "$0 <pkgdir> <indexfile>\n" if ($#ARGV != 1);
$xdep = 'XFree86-3\.3\.6_10';
$pkgdir = shift(@ARGV);
+#$ext = 'tbz';
+$ext = 'tgz';
+
+print STDERR "scrubindex pkgdir: $pkgdir\n";
+
+my $cnt = 0;
LOOP:
while (<>) {
@@ -13,11 +19,13 @@ while (<>) {
s/\| /\|/g;
@f = split('\|');
- next if (! -f "$pkgdir/$f[0].tgz");
+ next if (! -f "$pkgdir/$f[0].$ext");
foreach $dep (split(' ', $f[8])) {
- next LOOP if (! -f "$pkgdir/$dep.tgz");
+ next LOOP if (! -f "$pkgdir/$dep.$ext");
}
+ $cnt++;
print;
}
+print STDERR "$cnt lines copied from scrubindex.pl"