Browse Source

* changed lib/sde-config/pkgsel2awk.sh again, because it still crash on debian

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21858 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
c60ffe98ed
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      lib/sde-config/pkgsel2awk.sh

+ 5
- 2
lib/sde-config/pkgsel2awk.sh

@ -57,10 +57,13 @@ pkgsel_parse() {
-e 's,[^a-zA-Z0-9_/\*+\-\[\]],,g' \
-e 's,[/\.\+],\\\\&,g' \
-e 's,\*,[^/]*,g' )"
[ -z "$address" ] || address="$address &&"
if [ $neg -eq 0 ]; then
address="$address${address:+ && }( \$5 ~ \"^${pattern}\$\" )"
address="$address( \$5 ~ \"^${pattern}\$\" )"
else
address="$address${address:+ && }( \$5 !~ \"^${pattern}\$\" )"
address="$address( \$5 !~ \"^${pattern}\$\" )"
fi
done < <( echo "$patternlist" | tr '\t ' '\n\n' )
echo "{ if ( $address ) { $action; } }"

Loading…
Cancel
Save