summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/zvfstools/zvfstools.tcl2
-rw-r--r--tools/mkzip.tcl1
-rw-r--r--unix/Makefile.in4
3 files changed, 4 insertions, 3 deletions
diff --git a/library/zvfstools/zvfstools.tcl b/library/zvfstools/zvfstools.tcl
index 26f17c4..274d5a1 100644
--- a/library/zvfstools/zvfstools.tcl
+++ b/library/zvfstools/zvfstools.tcl
@@ -21,6 +21,8 @@ package require Tcl 8.6
# or a zipfile using mkzip filename.zip -directory dirname -exclude "*~"
#
+namespace eval ::zvfs {}
+
proc ::zvfs::setbinary chan {
fconfigure $chan \
-encoding binary \
diff --git a/tools/mkzip.tcl b/tools/mkzip.tcl
index e53bae3..ba10908 100644
--- a/tools/mkzip.tcl
+++ b/tools/mkzip.tcl
@@ -1,6 +1,5 @@
###
# Wrapper to allow access to Tcl's zvfs::mkzip command from Makefiles
###
-package require zvfs
source [file join [file dirname [file normalize [info script]]] .. library zvfstools zvfstools.tcl]
zvfs::mkzip {*}$argv
diff --git a/unix/Makefile.in b/unix/Makefile.in
index b635c0a..0819197 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -624,7 +624,7 @@ SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $(UNIX_SRCS) $(NOTIFY_SRCS) \
all: binaries libraries doc packages
-binaries: ${LIB_FILE} ${TCL_EXE}
+binaries: ${LIB_FILE} ${TCL_EXE} ${TCLZSH_EXE}
libraries:
@@ -679,7 +679,7 @@ ${TCLZSH_BASE}_bare: ${TCLZSH_OBJS} ${TCL_LIB_FILE} ${TCL_STUB_LIB_FILE}
# Builds an executable linked to the Tcl dynamic library
${TCLZSH_EXE}: ${TCLZSH_BASE}_bare tclzsh.vfs
- ./${TCLZSH_BASE}_bare ../tools/mkzip.tcl ${TCLZSH_EXE} \
+ @$(TCL_EXE) ../tools/mkzip.tcl ${TCLZSH_EXE} \
-runtime ${TCLZSH_BASE}_bare \
-directory tclzsh.vfs
chmod a+x ${TCLZSH_EXE}