summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-01-02 22:58:29 +0000
committerobrien <obrien@FreeBSD.org>2004-01-02 22:58:29 +0000
commit911fbba6e05f7719a0cc5b8ab5c2fe7838d908fb (patch)
tree08db15f69ff7bf8102f744ac7be42b7410bb1497 /release
parent622d03664527d3d3fe721e79f2dd24ecc197b6be (diff)
downloadFreeBSD-src-911fbba6e05f7719a0cc5b8ab5c2fe7838d908fb.zip
FreeBSD-src-911fbba6e05f7719a0cc5b8ab5c2fe7838d908fb.tar.gz
'+' can also appear in a package file name.
Reported by: jhb '^' could also appear in a package file name.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/mkpkgindex.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/mkpkgindex.sh b/release/scripts/mkpkgindex.sh
index 0c29d7d..b70a258 100644
--- a/release/scripts/mkpkgindex.sh
+++ b/release/scripts/mkpkgindex.sh
@@ -1,4 +1,5 @@
#! /bin/sh
+# ex:ts=8
# Copyright (c) 2003 David E. O'Brien
# All rights reserved.
@@ -40,7 +41,11 @@ case $# in
esac
PKG_LIST=$(basename `ls $3/*.${PKG_EXT}` | sed -e "s/\.${PKG_EXT}$//")
-REGEX=$(echo ${PKG_LIST} | sed -e 's/ /|/g' -e 's/\./\\\./g')
+REGEX=$(echo ${PKG_LIST} | sed \
+ -e 's/ /|/g' \
+ -e 's/\./\\\./g' \
+ -e 's/\+/\\\+/g' \
+ -e 's/\^/\\\^/g')
egrep "^(${REGEX})" $1 > $2
OpenPOWER on IntegriCloud