summaryrefslogtreecommitdiff
path: root/src/bin/pgtclsh
diff options
context:
space:
mode:
authorPeter Eisentraut2002-05-24 18:10:17 +0000
committerPeter Eisentraut2002-05-24 18:10:17 +0000
commit2f2d05763d1c55c7998c0d7030659e3db6f60183 (patch)
tree712315fa10be6aae8bc89a26db9d1be221248183 /src/bin/pgtclsh
parentc0fdec2b6a5ff5981c097101a938dea890be2392 (diff)
Change PL/Tcl build to use configured compiler and Makefile.shlib
system, not Tcl-provided one. Make sure export file, if any, is cleaned. Tcl configuration is now read directly in configure and recorded in Makefile.global. This eliminates some duplicate efforts and allows for easier hand-editing of the results, if necessary.
Diffstat (limited to 'src/bin/pgtclsh')
-rw-r--r--src/bin/pgtclsh/Makefile20
-rw-r--r--src/bin/pgtclsh/mkMakefile.tcldefs.sh23
-rw-r--r--src/bin/pgtclsh/mkMakefile.tkdefs.sh23
3 files changed, 2 insertions, 64 deletions
diff --git a/src/bin/pgtclsh/Makefile b/src/bin/pgtclsh/Makefile
index ea6dfb1ae2e..6fbeed74ec1 100644
--- a/src/bin/pgtclsh/Makefile
+++ b/src/bin/pgtclsh/Makefile
@@ -6,7 +6,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.37 2001/02/20 19:20:29 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.38 2002/05/24 18:10:17 petere Exp $
#
#-------------------------------------------------------------------------
@@ -14,13 +14,6 @@ subdir = src/bin/pgtclsh
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-#
-# Include definitions from the tclConfig.sh file
-#
--include Makefile.tcldefs
-ifeq ($(with_tk), yes)
--include Makefile.tkdefs
-endif
libpgtcl_srcdir = $(top_srcdir)/src/interfaces/libpgtcl
libpgtcl_builddir = $(top_builddir)/src/interfaces/libpgtcl
@@ -61,14 +54,5 @@ installdirs:
uninstall:
rm -f $(DESTDIR)$(bindir)/pgtclsh $(DESTDIR)$(bindir)/pgtksh
-Makefile.tcldefs: mkMakefile.tcldefs.sh
- $(SHELL) $< '$(TCL_CONFIG_SH)' '$@'
-
-Makefile.tkdefs: mkMakefile.tkdefs.sh
- $(SHELL) $< '$(TK_CONFIG_SH)' '$@'
-
clean distclean maintainer-clean:
- rm -f pgtclAppInit.o pgtkAppInit.o Makefile.tcldefs Makefile.tkdefs pgtclsh pgtksh
-
-dep depend:
- $(CC) -MM $(CFLAGS) *.c > depend
+ rm -f pgtclAppInit.o pgtkAppInit.o pgtclsh pgtksh
diff --git a/src/bin/pgtclsh/mkMakefile.tcldefs.sh b/src/bin/pgtclsh/mkMakefile.tcldefs.sh
deleted file mode 100644
index f9faef2fdca..00000000000
--- a/src/bin/pgtclsh/mkMakefile.tcldefs.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-
-# $1 = path to tclConfig.sh ; $2 = output file
-
-if test x"$1" = x ; then
- echo "$0: No tclConfig.sh file specified. Did you use \`configure --with-tcl'?" 1>&2
- exit 1
-fi
-
-# Source the file to obtain the correctly expanded variable definitions
-. "$1"
-
-# Read the file a second time as an easy way of getting the list of variable
-# definitions to output.
-cat "$1" |
- egrep '^TCL_|^TK_' |
- sed 's/^\([^=]*\)=.*$/\1/' |
- while read var
- do
- eval echo "\"$var = \$$var\""
- done > "$2"
-
-exit 0
diff --git a/src/bin/pgtclsh/mkMakefile.tkdefs.sh b/src/bin/pgtclsh/mkMakefile.tkdefs.sh
deleted file mode 100644
index c34f166a526..00000000000
--- a/src/bin/pgtclsh/mkMakefile.tkdefs.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-
-# $1 = path to tkConfig.sh ; $2 = output file
-
-if test x"$1" = x; then
- echo "$0: No tkConfig.sh file specified. Did you use \`configure --with-tcl --with-x'?" 1>&2
- exit 1
-fi
-
-# Source the file to obtain the correctly expanded variable definitions
-. "$1"
-
-# Read the file a second time as an easy way of getting the list of variable
-# definitions to output.
-cat "$1" |
- egrep '^TCL_|^TK_' |
- sed 's/^\([^=]*\)=.*$/\1/' |
- while read var
- do
- eval echo "\"$var = \$$var\""
- done > "$2"
-
-exit 0