aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
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"