From 91a0de54c5dbe1c8d8b8dcf59de77e4c02bcf734 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 28 Jul 2007 19:23:56 +0000 Subject: [PATCH] * 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 --- lib/sde-config/pkgsel2awk.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/sde-config/pkgsel2awk.sh b/lib/sde-config/pkgsel2awk.sh index 28a830f..2f33f00 100755 --- a/lib/sde-config/pkgsel2awk.sh +++ b/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 <