diff options
| author | sebres <sebres@users.sourceforge.net> | 2018-11-23 19:59:12 (GMT) |
|---|---|---|
| committer | sebres <sebres@users.sourceforge.net> | 2018-11-23 19:59:12 (GMT) |
| commit | d1e9efc1de9cabf20f451a1a214fcc527cb84257 (patch) | |
| tree | 9e3145a781c0d75e4b8fdca15a00bfa71dab0f33 | |
| parent | 813764c458ec766131b971e45d7ea5531e21f65b (diff) | |
| download | tcl-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"
| -rw-r--r-- | unix/Makefile.in | 7 | ||||
| -rw-r--r-- | win/Makefile.in | 4 |
2 files changed, 8 insertions, 3 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. diff --git a/win/Makefile.in b/win/Makefile.in index 1fb9361..8ed5f60 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -490,7 +490,9 @@ ${TCL_ZIP_FILE}: ${ZIP_INSTALL_OBJS} ${DDE_DLL_FILE} ${REG_DLL_FILE} $(COPY) -a ${TCL_VFS_PATH}/manifest.txt ${TCL_VFS_PATH}/pkgIndex.tcl $(COPY) ${DDE_DLL_FILE} ${TCL_VFS_PATH}/dde $(COPY) ${REG_DLL_FILE} ${TCL_VFS_PATH}/reg - (zip=`readlink -m '${NATIVE_ZIP}'`; cd ${TCL_VFS_ROOT} && \ + (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 ..) |
