diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/mkpkgindex.sh | 7 |
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 |