OSDN Git Service

Cleanup from Billy.
authorBruce Momjian <bruce@momjian.us>
Mon, 12 Oct 1998 04:45:22 +0000 (04:45 +0000)
committerBruce Momjian <bruce@momjian.us>
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 6af753f..a7d7a6f 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 940eb04..ea86a23 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