summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-11-23 19:59:12 (GMT)
committersebres <sebres@users.sourceforge.net>2018-11-23 19:59:12 (GMT)
commitd1e9efc1de9cabf20f451a1a214fcc527cb84257 (patch)
tree9e3145a781c0d75e4b8fdca15a00bfa71dab0f33 /unix
parent813764c458ec766131b971e45d7ea5531e21f65b (diff)
downloadtcl-d1e9efc1de9cabf20f451a1a214fcc527cb84257.zip
tcl-d1e9efc1de9cabf20f451a1a214fcc527cb84257.tar.gz
tcl-d1e9efc1de9cabf20f451a1a214fcc527cb84257.tar.bz2
make: better algo to wrap to absolute zip-path (for systems resp. toolchains without readlink/realpath), e. g. avoid xcode/macosx build error "readlink: illegal option -- m"
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 8dfb946..b9c347e 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -683,8 +683,11 @@ ${TCL_ZIP_FILE}: ${ZIP_INSTALL_OBJS}
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=`readlink -m '${NATIVE_ZIP}'`; cd ${TCL_VFS_ROOT} && \
- $$zip ${ZIP_PROG_OPTIONS} ../${TCL_ZIP_FILE} ${ZIP_PROG_VFSSEARCH} && cd ..)
+ (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} && \
+ cd ..)
# The following target is configured by autoconf to generate either a shared
# library or non-shared library for Tcl.