summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-01-21 01:49:57 (GMT)
committersebres <sebres@users.sourceforge.net>2019-01-21 01:49:57 (GMT)
commit6c7d5918b35d24ea7d54fcb9d836855843f581f7 (patch)
treed43d06f26309f15d3c8d98045bfff557cb106a2b /unix
parent3dd30ce854309c3433f211cacf5c430b9e8d0005 (diff)
downloadtcl-6c7d5918b35d24ea7d54fcb9d836855843f581f7.zip
tcl-6c7d5918b35d24ea7d54fcb9d836855843f581f7.tar.gz
tcl-6c7d5918b35d24ea7d54fcb9d836855843f581f7.tar.bz2
speed up build process (preparing zip - creating of libtcl.vfs/tcl_library directory), use "ln" instead of "cp" if possible
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index b9c347e..34a38d2 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -680,13 +680,20 @@ tclzipfile: ${TCL_ZIP_FILE}
${TCL_ZIP_FILE}: ${ZIP_INSTALL_OBJS}
@rm -rf ${TCL_VFS_ROOT}
@mkdir -p ${TCL_VFS_PATH}
- cp -a $(TOP_DIR)/library/* ${TCL_VFS_PATH}
- cp -a ${TCL_VFS_PATH}/manifest.txt ${TCL_VFS_PATH}/pkgIndex.tcl
- find ${TCL_VFS_ROOT} -type d -empty -delete
+ @echo "creating ${TCL_VFS_PATH} (prepare compression)"
+ @( \
+ ln -st ${TCL_VFS_PATH} $(TOP_DIR)/library/* && \
+ ln ${TCL_VFS_PATH}/manifest.txt ${TCL_VFS_PATH}/pkgIndex.tcl \
+ ) || ( \
+ cp -a $(TOP_DIR)/library/* ${TCL_VFS_PATH}; \
+ cp -a ${TCL_VFS_PATH}/manifest.txt ${TCL_VFS_PATH}/pkgIndex.tcl; \
+ )
+ @find ${TCL_VFS_ROOT} -type d -empty -delete
(zip=`(realpath '${NATIVE_ZIP}' || readlink -m '${NATIVE_ZIP}') 2>/dev/null || \
(echo '${NATIVE_ZIP}' | sed "s?^\./?$$(pwd)/?")`; \
cd ${TCL_VFS_ROOT} && \
- $$zip ${ZIP_PROG_OPTIONS} ../${TCL_ZIP_FILE} ${ZIP_PROG_VFSSEARCH} && \
+ $$zip ${ZIP_PROG_OPTIONS} ../${TCL_ZIP_FILE} ${ZIP_PROG_VFSSEARCH} >/dev/null && \
+ echo "${TCL_ZIP_FILE} successful created with $$zip" && \
cd ..)
# The following target is configured by autoconf to generate either a shared