Cleanup from Billy.
authorBruce Momjian
Mon, 12 Oct 1998 04:45:22 +0000 (04:45 +0000)
committerBruce Momjian
Mon, 12 Oct 1998 04:45:22 +0000 (04:45 +0000)
src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in
src/pl/tcl/mkMakefile.tcldefs.sh.in

index 6af753f3fbb21fe6efc921cef408e8116993d50c..a7d7a6fc25f93becbb839d84674660c9dbb0876b 100644 (file)
@@ -16,14 +16,11 @@ fi
 . @TCL_CONFIG_SH@
 . @TK_CONFIG_SH@
 
-set                                    | 
-    egrep '^TCL_|^TK_'             |
-    sed -e 's/=/="/' -e 's/$/"/'   |
-    while read v
+cat @TCL_CONFIG_SH@ @TK_CONFIG_SH@ |
+    egrep '^TCL_|^TK_' |
+    while read inp
     do
-       eval "$v"
-       v1=`echo $v | sed -e 's/=.*//'`
-       eval "echo $v1 = \"\$$v1\""
+       eval eval echo $inp
     done >Makefile.tcltkdefs
 
 exit 0
index 940eb04928ce31c16ff66557cc3611c59d9fe35c..ea86a233371bf5b1ebf1b0518e36ebf6cd06a017 100644 (file)
@@ -6,16 +6,11 @@ if [ ! -f @TCL_CONFIG_SH@ ]; then
     exit 1
 fi
 
-. @TCL_CONFIG_SH@
-
-set                                                | 
-    egrep '^TCL_|^TK_'                         |
-    sed -e 's/=[   ]*/="/' -e 's/[     ]*$/"/' |
-    while read v
+cat @TCL_CONFIG_SH@ |
+    egrep '^TCL_|^TK_' |
+    while read inp
     do
-       eval "$v"
-       v1=`echo $v | sed -e 's/=.*//'`
-       eval "echo $v1 = \"\$$v1\""
+       eval eval echo $inp
     done >Makefile.tcldefs
 
 exit 0