From 4c64bb7d97d2b178e419fd4c2c1d064c1fc280a2 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 12 Oct 1998 02:42:22 +0000
Subject: [PATCH] add new file.

---
 src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in

diff --git a/src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in b/src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in
new file mode 100644
index 00000000000..6af753f3fbb
--- /dev/null
+++ b/src/bin/pgtclsh/mkMakefile.tcltkdefs.sh.in
@@ -0,0 +1,29 @@
+
+if [ ! -f @TCL_CONFIG_SH@ ]; then
+    echo "@TCL_CONFIG_SH@ not found"
+    echo "I need this file! Please make a symbolic link to this file"
+    echo "and start make again."
+    exit 1
+fi
+
+if [ ! -f @TK_CONFIG_SH@ ]; then
+    echo "@TK_CONFIG_SH@ not found"
+    echo "I need this file! Please make a symbolic link to this file"
+    echo "and start make again."
+    exit 1
+fi
+
+. @TCL_CONFIG_SH@
+. @TK_CONFIG_SH@
+
+set									| 
+    egrep '^TCL_|^TK_'				|
+    sed -e 's/=/="/' -e 's/$/"/'	|
+    while read v
+    do
+		eval "$v"
+		v1=`echo $v | sed -e 's/=.*//'`
+		eval "echo $v1 = \"\$$v1\""
+    done >Makefile.tcltkdefs
+
+exit 0
-- 
GitLab