Browse Source

* changed ./lib/sde-config/pkgsel2awk.sh again, trying to not

kill debian's bash


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

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

@ -30,7 +30,8 @@
pkgsel_parse() {
local action patterlist pattern
local address first others
while read action patternlist ; do
sed -e '/^#/d;' -e '/^[ \t]*$/d;' "$@" | while read action patternlist ; do
case "$action" in
[xX])
action='$1="X"' ;;
@ -41,7 +42,7 @@ pkgsel_parse() {
=)
action='$1=def' ;;
include)
egrep -v "^((^#.*$)|())$" $patternlist | pkgsel_parse
pkgsel_parse $patternlist
continue ;;
*)
echo '{ exit; }'
@ -76,9 +77,7 @@ cat <
}
EOF
for pkgsel; do
egrep -v "^((^#.*$)|())$" $pkgsel | pkgsel_parse
done
pkgsel_parse "$@"
cat <<EOF
{

Loading…
Cancel
Save