diff options
author | kris <kris@FreeBSD.org> | 2002-11-02 12:00:18 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-11-02 12:00:18 +0800 |
commit | 0ee6c69487032a5dc72d10cf19ddc0adaca35c83 (patch) | |
tree | 7211dd991a07183e28bef8c5efcb9151da5f384e /Tools/portbuild | |
parent | 7cd5d61473c95e295458b1ff7dfaced9b2e516ca (diff) | |
download | freebsd-ports-gnome-0ee6c69487032a5dc72d10cf19ddc0adaca35c83.tar.gz freebsd-ports-gnome-0ee6c69487032a5dc72d10cf19ddc0adaca35c83.tar.zst freebsd-ports-gnome-0ee6c69487032a5dc72d10cf19ddc0adaca35c83.zip |
Support either .tgz or .tbz packages
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/chopindex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/chopindex b/Tools/portbuild/scripts/chopindex index 99134bc0abe7..0b59a294049e 100755 --- a/Tools/portbuild/scripts/chopindex +++ b/Tools/portbuild/scripts/chopindex @@ -9,13 +9,13 @@ tmpindex=/tmp/index.$$ # make a list of all pkgnames that don't have corresponding packages missing=$(/usr/bin/awk -v FS="|" -v pkgdir=$pkgdir '{ - if (system(sprintf("test -e %s/All/%s.tbz\n", pkgdir, $1))) + if (system(sprintf("test -e %s/All/%s.t[bg]z\n", pkgdir, $1))) print $1 ; }' $index) # make an index for only the ports that have packages /usr/bin/awk -v FS="|" -v pkgdir=$pkgdir '{ - if (system(sprintf("test ! -e %s/All/%s.tbz\n", pkgdir, $1))) + if (system(sprintf("test ! -e %s/All/%s.t[bg]z\n", pkgdir, $1))) print $0 ; }' $index > $tmpindex |