diff options
author | stwo <stwo> | 2013-01-31 13:50:38 (GMT) |
---|---|---|
committer | stwo <stwo> | 2013-01-31 13:50:38 (GMT) |
commit | 8f72fe1eb9bdbf2e439c3c168d1199ab6a7790d1 (patch) | |
tree | 0f9df16696586fa30ee3529c7c4cc598a6318a76 /unix | |
parent | 9a5465ed602b2ba81a88468d8758f77a2e91ba04 (diff) | |
download | tcl-8f72fe1eb9bdbf2e439c3c168d1199ab6a7790d1.zip tcl-8f72fe1eb9bdbf2e439c3c168d1199ab6a7790d1.tar.gz tcl-8f72fe1eb9bdbf2e439c3c168d1199ab6a7790d1.tar.bz2 |
Bug [3598282]: Stop using installData.tcl to install the timezone files.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile.in | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index f433f2f..fe95797 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -866,10 +866,39 @@ install-libraries: libraries "$(SCRIPT_INSTALL_DIR)"/tm.tcl; \ fi -install-tzdata: ${NATIVE_TCLSH} +install-tzdata: + @for i in tzdata; \ + do \ + if [ ! -d "$(SCRIPT_INSTALL_DIR)"/$$i ] ; then \ + echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ + $(INSTALL_DATA_DIR) "$(SCRIPT_INSTALL_DIR)"/$$i; \ + else true; \ + fi; \ + done; @echo "Installing time zone files to $(SCRIPT_INSTALL_DIR)/tzdata/" - @${NATIVE_TCLSH} $(TOOL_DIR)/installData.tcl \ - $(TOP_DIR)/library/tzdata "$(SCRIPT_INSTALL_DIR)"/tzdata + @for i in $(TOP_DIR)/library/tzdata/* ; do \ + if [ -d $$i ] ; then \ + ii=`basename $$i`; \ + if [ ! -d "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii ] ; then \ + $(INSTALL_DATA_DIR) "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii; \ + fi; \ + for j in $$i/* ; do \ + if [ -d $$j ] ; then \ + jj=`basename $$j`; \ + if [ ! -d "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii/$$jj ] ; then \ + $(INSTALL_DATA_DIR) "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii/$$jj; \ + fi; \ + for k in $$j/* ; do \ + $(INSTALL_DATA) $$k "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii/$$jj; \ + done; \ + else \ + $(INSTALL_DATA) $$j "$(SCRIPT_INSTALL_DIR)"/tzdata/$$ii; \ + fi; \ + done; \ + else \ + $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/tzdata; \ + fi; \ + done; install-msgs: @for i in msgs; \ |