Compare commits

...
Author SHA1 Message Date
sebres 0e829ca94d installVfs.tcl: fixed comparison operator (ne -> eq), therefore no lmkimg executed previously 2018-11-26 16:18:44 +00:00
hypnotoad 14026ca4cb Adding /Y flags to suppress prompting 2018-11-26 15:14:44 +00:00
hypnotoad a05db47e2d Modifying the call to installVfs.tcl to create a file that is
a different name than the current running tcl.dll, and then have
nmake swap that new file out as the new tcl.dll when the process
is complete
2018-11-26 15:11:20 +00:00
hypnotoad b7e6922f68 Unpatching ifdefs that don't seem to work 2018-11-26 14:59:50 +00:00
sebres 429d288f43 makefile.vc: fixed missing compile defines for tclZipfs 2018-11-26 14:58:13 +00:00
hypnotoad 4061069f4a Adding ifdef checks to catch cases where CFG_RUNTIME_ZIPFILE
is defined, but CFG_RUNTIME_LIBDIR and/or CFG_RUNTIME_SRCDIR
are not. (Needed for Windows where CFG_RUNTIME_LIBDIR is either
unknown or just plain silly)
2018-11-26 14:43:58 +00:00
hypnotoad 7f7f461f80 Pulling changes from core-8-branch 2018-11-23 13:11:53 +00:00
hypnotoad 9d0d7f5103 An experiment to integrate zipfs support with nmake 2018-11-21 13:07:26 +00:00
2 changed files with 22 additions and 56 deletions
+4 -4
View File
@@ -43,12 +43,12 @@ if {[llength $argv]<4} {
error "Usage: [file tail [info script]] IMG_OUTPUT IMG_INPUT PREFIX FILE_SYSTEM ?PREFIX FILE_SYSTEM?..."
}
set paths [lassign $argv DLL_OUTPUT DLL_INPUT]
set paths [lassign $argv IMG_OUTPUT IMG_INPUT]
foreach {prefix fpath} $paths {
mapDir files $prefix [file normalize $fpath]
}
if {$DLL_INPUT != {}} {
zipfs lmkzip $DLL_OUTPUT $files
if {$IMG_INPUT eq {}} {
zipfs lmkzip $IMG_OUTPUT $files
} else {
zipfs lmkimg $DLL_OUTPUT $files {} $DLL_INPUT
zipfs lmkimg $IMG_OUTPUT $files {} $IMG_INPUT
}
+18 -52
View File
@@ -123,6 +123,7 @@ TCLDDELIBNAME = $(PROJECT)dde$(DDEVERSION)$(SUFX:t=).$(EXT)
TCLDDELIB = $(OUT_DIR)\$(TCLDDELIBNAME)
TCLTEST = $(OUT_DIR)\$(PROJECT)test.exe
TCLZIPFILE = tcl$(VERSION).zip
TCLSHOBJS = \
$(TMP_DIR)\tclAppInit.obj \
@@ -411,6 +412,10 @@ $(TCLLIB): $(TCLOBJS)
$**
<<
@$(TCLSH_NATIVE) "$(ROOT:\=/)/tools/installVfs.tcl" \
$(TCLZIPFILE) "" \
tcl_library "$(ROOT:\=/)/library"
!else
$(TCLLIB): $(TCLOBJS)
@@ -418,6 +423,11 @@ $(TCLLIB): $(TCLOBJS)
$**
<<
$(_VC_MANIFEST_EMBED_DLL)
@$(TCLSH_NATIVE) "$(ROOT:\=/)/tools/installVfs.tcl" \
$(TCLLIB).tmp $(TCLLIB) \
tcl_library "$(ROOT:\=/)/library"
move /Y $(TCLLIB) $(TCLLIB).bare
move /Y $(TCLLIB).tmp $(TCLLIB)
$(TCLIMPLIB): $(TCLLIB)
@@ -682,7 +692,11 @@ $(TMP_DIR)\tclWinTest.obj: $(WINDIR)\tclWinTest.c
$(CCAPPCMD) $?
$(TMP_DIR)\tclZipfs.obj: $(GENERICDIR)\tclZipfs.c
$(cc32) $(pkgcflags) -I$(COMPATDIR)\zlib -I$(COMPATDIR)\zlib\contrib\minizip -Fo$@ $?
$(cc32) $(pkgcflags) \
-DCFG_RUNTIME_LIBDIR="\"$(LIB_INSTALL_DIR:\=\\)\"" \
-DCFG_RUNTIME_SCRDIR="\"$(SCRIPT_INSTALL_DIR:\=\\)\"" \
-DCFG_RUNTIME_ZIPFILE="\"$(TCLZIPFILE:\=\\)\"" \
-I$(COMPATDIR)\zlib -I$(COMPATDIR)\zlib\contrib\minizip -Fo$@ $?
$(TMP_DIR)\tclZlib.obj: $(GENERICDIR)\tclZlib.c
$(cc32) $(pkgcflags) -I$(COMPATDIR)\zlib -Fo$@ $?
@@ -811,6 +825,8 @@ install-binaries:
@echo Installing $(TCLLIBNAME)
!if "$(TCLLIB)" != "$(TCLIMPLIB)"
@$(CPY) "$(TCLLIB)" "$(BIN_INSTALL_DIR)\"
!else
@$(CPY) "$(TCLZIPFILE)" "$(BIN_INSTALL_DIR)\"
!endif
@$(CPY) "$(TCLIMPLIB)" "$(LIB_INSTALL_DIR)\"
!if exist($(TCLSH))
@@ -820,23 +836,7 @@ install-binaries:
@echo Installing $(TCLSTUBLIBNAME)
@$(CPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
install-libraries: tclConfig tcl-nmake install-msgs install-tzdata
@if not exist "$(SCRIPT_INSTALL_DIR)" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4\platform" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4\platform"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.5" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.5"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.6" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.6"
@if not exist "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.7" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)\..\tcl8\8.7"
@if not exist "$(LIB_INSTALL_DIR)\nmake" \
$(MKDIR) "$(LIB_INSTALL_DIR)\nmake"
install-libraries: tclConfig tcl-nmake
@echo Installing header files
@$(CPY) "$(GENERICDIR)\tcl.h" "$(INCLUDE_INSTALL_DIR)\"
@$(CPY) "$(GENERICDIR)\tclDecls.h" "$(INCLUDE_INSTALL_DIR)\"
@@ -864,24 +864,6 @@ install-libraries: tclConfig tcl-nmake install-msgs install-tzdata
@$(CPY) "$(WINDIR)\targets.vc" "$(LIB_INSTALL_DIR)\nmake\"
@$(CPY) "$(WINDIR)\nmakehlp.c" "$(LIB_INSTALL_DIR)\nmake\"
@$(CPY) "$(OUT_DIR)\tcl.nmake" "$(LIB_INSTALL_DIR)\nmake\"
@echo Installing library opt0.4 directory
@$(CPY) "$(ROOT)\library\opt\*.tcl" \
"$(SCRIPT_INSTALL_DIR)\opt0.4\"
@echo Installing package http $(PKG_HTTP_VER) as a Tcl Module
@$(COPY) "$(ROOT)\library\http\http.tcl" \
"$(SCRIPT_INSTALL_DIR)\..\tcl8\8.6\http-$(PKG_HTTP_VER).tm"
@echo Installing package msgcat $(PKG_MSGCAT_VER) as a Tcl Module
@$(COPY) "$(ROOT)\library\msgcat\msgcat.tcl" \
"$(SCRIPT_INSTALL_DIR)\..\tcl8\8.7\msgcat-$(PKG_MSGCAT_VER).tm"
@echo Installing package tcltest $(PKG_TCLTEST_VER) as a Tcl Module
@$(COPY) "$(ROOT)\library\tcltest\tcltest.tcl" \
"$(SCRIPT_INSTALL_DIR)\..\tcl8\8.5\tcltest-$(PKG_TCLTEST_VER).tm"
@echo Installing package platform $(PKG_PLATFORM_VER) as a Tcl Module
@$(COPY) "$(ROOT)\library\platform\platform.tcl" \
"$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4\platform-$(PKG_PLATFORM_VER).tm"
@echo Installing package platform::shell $(PKG_SHELL_VER) as a Tcl Module
@$(COPY) "$(ROOT)\library\platform\shell.tcl" \
"$(SCRIPT_INSTALL_DIR)\..\tcl8\8.4\platform\shell-$(PKG_SHELL_VER).tm"
@echo Installing $(TCLDDELIBNAME)
!if $(STATIC_BUILD)
!if !$(TCL_USE_STATIC_PACKAGES)
@@ -902,22 +884,6 @@ install-libraries: tclConfig tcl-nmake install-msgs install-tzdata
@$(CPY) "$(ROOT)\library\reg\pkgIndex.tcl" \
"$(LIB_INSTALL_DIR)\reg$(REGDOTVERSION)\"
!endif
@echo Installing encodings
@$(CPY) "$(ROOT)\library\encoding\*.enc" \
"$(SCRIPT_INSTALL_DIR)\encoding\"
# "emacs font-lock highlighting fix
install-tzdata:
@echo Installing time zone data
@set TCL_LIBRARY=$(ROOT:\=/)/library
@$(TCLSH_NATIVE) "$(ROOT:\=/)/tools/installData.tcl" \
"$(ROOT:\=/)/library/tzdata" "$(SCRIPT_INSTALL_DIR)/tzdata"
install-msgs:
@echo Installing message catalogs
@set TCL_LIBRARY=$(ROOT:\=/)/library
@$(TCLSH_NATIVE) "$(ROOT:\=/)/tools/installData.tcl" \
"$(ROOT:\=/)/library/msgs" "$(SCRIPT_INSTALL_DIR)/msgs"
#---------------------------------------------------------------------
# Clean up