summaryrefslogtreecommitdiff
path: root/libc/Config_sh
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-07-20 12:16:17 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:39:55 +0200
commit9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (patch)
treeb1e5b67ef9e065efb6a4c9977ecfac8dedbad39b /libc/Config_sh
parente63c244cb22bf48ca1d2695784a072269d19ea96 (diff)
downloaddev86-9d97bc3cb3aecd3416fb7c4be3ca2f436665b696.tar.gz
Import Dev86src-0.12.4.tar.gzv0.12.4
Diffstat (limited to 'libc/Config_sh')
-rw-r--r--libc/Config_sh14
1 files changed, 8 insertions, 6 deletions
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 | \