From 0bcf3488c882728655709331fb2d40771157b207 Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 27 Jan 2017 12:29:39 -0500 Subject: fix pkgIndex --- tkcon/configure | 3 +-- tkcon/configure.ac | 2 +- tkcon/pkgIndex.tcl | 11 +++++++++++ tkcon/pkgIndex.tcl.in | 5 ----- 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 tkcon/pkgIndex.tcl delete mode 100644 tkcon/pkgIndex.tcl.in diff --git a/tkcon/configure b/tkcon/configure index 76d042b..3e2fa0b 100755 --- a/tkcon/configure +++ b/tkcon/configure @@ -5756,7 +5756,7 @@ fi # which require substituting th AC variables in. Include these here. #-------------------------------------------------------------------- -ac_config_files="$ac_config_files Makefile pkgIndex.tcl" +ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -6465,7 +6465,6 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac diff --git a/tkcon/configure.ac b/tkcon/configure.ac index 29eef9e..e597286 100644 --- a/tkcon/configure.ac +++ b/tkcon/configure.ac @@ -173,4 +173,4 @@ fi # which require substituting th AC variables in. Include these here. #-------------------------------------------------------------------- -AC_OUTPUT([Makefile pkgIndex.tcl]) +AC_OUTPUT([Makefile]) diff --git a/tkcon/pkgIndex.tcl b/tkcon/pkgIndex.tcl new file mode 100644 index 0000000..431442a --- /dev/null +++ b/tkcon/pkgIndex.tcl @@ -0,0 +1,11 @@ +# pkgIndex.tcl to use tkcon as a package via 'package require tkcon' +# +# 'tkcon show' will do all that is necessary to display tkcon +# +# Defaults to: +# * the main interp as the "slave" +# * hiding tkcon when you click in the titlebar [X] +# * using '.tkcon' as the root toplevel +# * not displaying itself at 'package require' time +# +package ifneeded tkcon 2.7 [list source [file join $dir tkcon.tcl]] diff --git a/tkcon/pkgIndex.tcl.in b/tkcon/pkgIndex.tcl.in deleted file mode 100644 index d7566b4..0000000 --- a/tkcon/pkgIndex.tcl.in +++ /dev/null @@ -1,5 +0,0 @@ -# -# Tcl package index file -# -package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \ - [list load [file join $dir @PKG_LIB_FILE@] @PACKAGE_NAME@] -- cgit v0.12