From 9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Sun, 20 Jul 1997 12:16:17 +0200 Subject: Import Dev86src-0.12.4.tar.gz --- libc/Config_sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libc/Config_sh') diff --git a/libc/Config_sh b/libc/Config_sh index 4beff3e..0b65992 100644 --- a/libc/Config_sh +++ b/libc/Config_sh @@ -6,14 +6,16 @@ main() { rm -f .config.tmp - ALLON=no + ALLON=yes - if [ -f .config.lst ] + if [ "$ALLON" = yes -a -f .config.lst ] then grep '^[^:]*:+:' .config.lst > .config.tmp - if [ ! -s .config.tmp ] - then ALLON=yes - fi - else ALLON=yes + [ -s .config.tmp ] && ALLON=no + fi + + if [ "$ALLON" = yes -a -f Config.dflt ] + then grep '^[^:]*:+:' Config.dflt > .config.tmp + [ -s .config.tmp ] && ALLON=no fi egrep -v '^#|^$' /dev/null */[Cc]onfig | \ -- cgit v1.2.1