summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-07-30 05:51:04 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-07-30 05:51:04 +0000
commit8f42a578015d9ce28d4c8c45a37ce046c2684c0b (patch)
tree799e5e84e79b0c4b06351f16ed16f77734da11cd /Tools
parentupgrade to 0.10 (diff)
Little script to convert ports/INDEX to packages/INDEX.
Notes
Notes: svn path=/head/; revision=20385
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/chopindex13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/chopindex b/Tools/portbuild/scripts/chopindex
new file mode 100755
index 000000000000..feffb55ada19
--- /dev/null
+++ b/Tools/portbuild/scripts/chopindex
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ $# != 2 ]; then
+ echo "usage: chopindex <indexfile> <pkgdir>"
+ return 1
+fi
+index=$1
+pkgdir=$2
+/usr/bin/awk -v FS="|" -v pkgdir=$pkgdir '{
+ if (system(sprintf("test ! -e %s/All/%s.tgz\n", pkgdir, $1)))
+ print $0 ;
+}' $index | \
+ sed -e 's/XFree86-3\.3\.4//g' -e 's/Motif-2\.1\.10//g' \
+ -e 's/ */ /g' -e 's/| /|/g' -e 's/ |/|/g'