aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-07-30 13:51:04 +0800
committerasami <asami@FreeBSD.org>1999-07-30 13:51:04 +0800
commitc2532aac786afeb667ad92ce4a977ba4b140ec1f (patch)
tree04ed425173e5fef9b0f515f7497402f4e3beaf79 /Tools
parent40ca9d99c9f98c0782fccf414c5b47622e501a56 (diff)
downloadfreebsd-ports-gnome-c2532aac786afeb667ad92ce4a977ba4b140ec1f.tar.gz
freebsd-ports-gnome-c2532aac786afeb667ad92ce4a977ba4b140ec1f.tar.zst
freebsd-ports-gnome-c2532aac786afeb667ad92ce4a977ba4b140ec1f.zip
Little script to convert ports/INDEX to packages/INDEX.
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'