From 93b183141eb75f6c3004d4c2324b85fa10a20d50 Mon Sep 17 00:00:00 2001 From: Sheila Aman Date: Fri, 6 Aug 2021 07:44:38 -0500 Subject: [PATCH 1/7] unix: patch unix.mak and vars.mak.in for correct DESTDIR support --- unix/unix.mak | 109 +++++++++++++++++++++++++---------------------- unix/vars.mak.in | 10 ++--- 2 files changed, 64 insertions(+), 55 deletions(-) diff --git a/unix/unix.mak b/unix/unix.mak index ae4a6d26..a3990cec 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -81,62 +81,71 @@ TF tf$(X): $(OBJS) $(BUILDERS) -test -z "$(STRIP)" || $(STRIP) tf$(X) || true PREFIXDIRS: - test -d "$(bindir)" || mkdir $(bindir) - test -d "$(datadir)" || mkdir $(datadir) install_TF $(TF): tf$(X) $(BUILDERS) - -@rm -f $(TF) - cp tf$(X) $(TF) - chmod $(MODE) $(TF) + install -Dm755 tf${X} ${DESTDIR}${bindir}/tf SYMLINK $(SYMLINK): $(TF) - test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } LIBRARY $(TF_LIBDIR): ../lib/tf/tf-help ../lib/tf/tf-help.idx - @echo '## Creating library directory...' -# @# Overly simplified shell commands, to avoid problems on ultrix - -@test -n "$(TF_LIBDIR)" || echo "TF_LIBDIR is undefined." - test -n "$(TF_LIBDIR)" - test -d "$(TF_LIBDIR)" || mkdir $(TF_LIBDIR) - -@test -d "$(TF_LIBDIR)" || echo "Can't make $(TF_LIBDIR) directory. See if" - -@test -d "$(TF_LIBDIR)" || echo "there is already a file with that name." - test -d "$(TF_LIBDIR)" -# -# @#rm -f $(TF_LIBDIR)/*; # wrong: this would remove local.tf, etc. - @echo '## Copying library files...' - cd ../lib/tf; \ - for f in *; do test -f $$f && files="$$files $$f"; done; \ - ( cd $(TF_LIBDIR); rm -f $$files tf.help tf.help.index; ); \ - cp $$files $(TF_LIBDIR); \ - cd ../../lib/py; \ - for f in *; do test -f $$f && pyfiles="$$pyfiles $$f"; done; \ - ( cd $(TF_LIBDIR); rm -f $$pyfiles tf.help tf.help.index; ); \ - cp $$pyfiles $(TF_LIBDIR); \ - cd $(TF_LIBDIR); \ - chmod $(MODE) $$files; chmod ugo-wx $$files ;\ - chmod $(MODE) $$pyfiles; chmod ugo-wx $$pyfiles - -rm -f $(TF_LIBDIR)/CHANGES - cp ../CHANGES $(TF_LIBDIR) - chmod $(MODE) $(TF_LIBDIR)/CHANGES; chmod ugo-wx $(TF_LIBDIR)/CHANGES - chmod $(MODE) $(TF_LIBDIR) - -@cd $(TF_LIBDIR); old=`ls replace.tf 2>/dev/null`; \ - if [ -n "$$old" ]; then \ - echo "## WARNING: Obsolete files found in $(TF_LIBDIR): $$old"; \ - fi - @echo '## Creating links so old library names still work...' -# @# note: ln -sf isn't portable. - @cd $(TF_LIBDIR); \ - rm -f bind-bash.tf; ln -s kb-bash.tf bind-bash.tf; \ - rm -f bind-emacs.tf; ln -s kb-emacs.tf bind-emacs.tf; \ - rm -f completion.tf; ln -s complete.tf completion.tf; \ - rm -f factorial.tf; ln -s factoral.tf factorial.tf; \ - rm -f file-xfer.tf; ln -s filexfer.tf file-xfer.tf; \ - rm -f local.tf.sample; ln -s local-eg.tf local.tf.sample; \ - rm -f pref-shell.tf; ln -s psh.tf pref-shell.tf; \ - rm -f space_page.tf; ln -s spc-page.tf space_page.tf; \ - rm -f speedwalk.tf; ln -s spedwalk.tf speedwalk.tf; \ - rm -f stack_queue.tf; ln -s stack-q.tf stack_queue.tf; \ - rm -f worldqueue.tf; ln -s world-q.tf worldqueue.tf; + install -Dm644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/tf-lib/lisp.tf + install -Dm644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/tf-lib/hanoi.tf + install -Dm644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/tf-lib/spell.tf + install -Dm644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/tf-lib/spedwalk.tf + install -Dm644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/tf-lib/kb-emacs.tf + install -Dm644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/tf-lib/tf-help.idx + install -Dm644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/tf-lib/tools.tf + install -Dm644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/tf-lib/watch.tf + install -Dm644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/tf-lib/kb_badterm.tf + install -Dm644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/tf-lib/world-q.tf + install -Dm644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/tf-lib/changes.tf + install -Dm644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/tf-lib/stack-q.tf + install -Dm644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/tf-lib/factoral.tf + install -Dm644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/tf-lib/cylon.tf + install -Dm644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/tf-lib/quoter.tf + install -Dm644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/tf-lib/psh.tf + install -Dm644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/tf-lib/textutil.tf + install -Dm644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/tf-lib/finger.tf + install -Dm644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/tf-lib/savehist.tf + install -Dm644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/tf-lib/textencode.tf + install -Dm644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/tf-lib/spc-page.tf + install -Dm644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/tf-lib/teraterm.keyboard.cnf + install -Dm644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/tf-lib/testcolor.tf + install -Dm644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/tf-lib/tintin.tf + install -Dm644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/tf-lib/grep.tf + install -Dm644 ../lib/tf/tfrc ${DESTDIR}${datadir}/tf-lib/tfrc + install -Dm644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/tf-lib/rwho.tf + install -Dm644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/tf-lib/alias.tf + install -Dm644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/tf-lib/kbbind.tf + install -Dm644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/tf-lib/complete.tf + install -Dm644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/tf-lib/kbregion.tf + install -Dm644 ../lib/tf/color.tf ${DESTDIR}${datadir}/tf-lib/color.tf + install -Dm644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/tf-lib/kb-bash.tf + install -Dm644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/tf-lib/kbstack.tf + install -Dm644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/tf-lib/filexfer.tf + install -Dm644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/tf-lib/activity_status.tf + install -Dm644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/tf-lib/tfstatus.tf + install -Dm644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/tf-lib/relog.tf + install -Dm644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/tf-lib/local-eg.tf + install -Dm644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/tf-lib/stdlib.tf + install -Dm644 ../lib/tf/at.tf ${DESTDIR}${datadir}/tf-lib/at.tf + install -Dm644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/tf-lib/tick.tf + install -Dm644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/tf-lib/kb-os2.tf + install -Dm644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/tf-lib/kbfunc.tf + install -Dm644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/tf-lib/pcmd.tf + install -Dm644 ../lib/tf/map.tf ${DESTDIR}${datadir}/tf-lib/map.tf + install -Dm644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/tf-lib/activity_status2.tf + install -Dm644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/tf-lib/kb-old.tf + install -Dm644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/tf-lib/tr.tf + install -Dm644 ../CHANGES ${DESTDIR}${datadir}/tf-lib/CHANGES + install -Dm644 ../README.md ${DESTDIR}${datadir}/tf-lib/README + install -Dm644 ../lib/tf/examples.old ${DESTDIR}${datadir}/tf-lib/examples.old + install -Dm644 ../lib/py/config.py ${DESTDIR}${datadir}/tf-lib/config.py + install -Dm644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/tf-lib/diffedit.py + install -Dm644 ../lib/py/tf.py ${DESTDIR}${datadir}/tf-lib/tf.py + install -Dm644 ../lib/py/tf4.py ${DESTDIR}${datadir}/tf-lib/tf4.py + install -Dm644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/tf-lib/tfutil.py + install -Dm644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/tf-lib/urlwatch.py makehelp: makehelp.c $(CC) $(CFLAGS) -o makehelp makehelp.c diff --git a/unix/vars.mak.in b/unix/vars.mak.in index 8f8c8320..8cc49eff 100644 --- a/unix/vars.mak.in +++ b/unix/vars.mak.in @@ -12,11 +12,11 @@ # @configure_input@ -prefix = ${DESTDIR}@prefix@ -exec_prefix= ${DESTDIR}@exec_prefix@ -bindir = ${DESTDIR}@bindir@ -datadir = ${DESTDIR}@datadir@ -mandir = ${DESTDIR}@mandir@ +prefix = @prefix@ +exec_prefix= @exec_prefix@ +bindir = @bindir@ +datadir = @datadir@ +mandir = @mandir@ TFVERSION = @TFVERSION@ X = @EXEEXT@ From 4665e610e1db17b3a7094e3135e735bb50a492b7 Mon Sep 17 00:00:00 2001 From: Sheila Aman Date: Fri, 6 Aug 2021 08:00:22 -0500 Subject: [PATCH 2/7] unix/unix.mak: work on macOS, use install(1) for manpage too --- unix/unix.mak | 122 ++++++++++++++++++++++++++------------------------ 1 file changed, 63 insertions(+), 59 deletions(-) diff --git a/unix/unix.mak b/unix/unix.mak index a3990cec..6de426ec 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -83,69 +83,71 @@ TF tf$(X): $(OBJS) $(BUILDERS) PREFIXDIRS: install_TF $(TF): tf$(X) $(BUILDERS) - install -Dm755 tf${X} ${DESTDIR}${bindir}/tf + install -d -m755 ${DESTDIR}${bindir} + install -m755 tf${X} ${DESTDIR}${bindir}/tf SYMLINK $(SYMLINK): $(TF) LIBRARY $(TF_LIBDIR): ../lib/tf/tf-help ../lib/tf/tf-help.idx - install -Dm644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/tf-lib/lisp.tf - install -Dm644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/tf-lib/hanoi.tf - install -Dm644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/tf-lib/spell.tf - install -Dm644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/tf-lib/spedwalk.tf - install -Dm644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/tf-lib/kb-emacs.tf - install -Dm644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/tf-lib/tf-help.idx - install -Dm644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/tf-lib/tools.tf - install -Dm644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/tf-lib/watch.tf - install -Dm644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/tf-lib/kb_badterm.tf - install -Dm644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/tf-lib/world-q.tf - install -Dm644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/tf-lib/changes.tf - install -Dm644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/tf-lib/stack-q.tf - install -Dm644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/tf-lib/factoral.tf - install -Dm644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/tf-lib/cylon.tf - install -Dm644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/tf-lib/quoter.tf - install -Dm644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/tf-lib/psh.tf - install -Dm644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/tf-lib/textutil.tf - install -Dm644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/tf-lib/finger.tf - install -Dm644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/tf-lib/savehist.tf - install -Dm644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/tf-lib/textencode.tf - install -Dm644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/tf-lib/spc-page.tf - install -Dm644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/tf-lib/teraterm.keyboard.cnf - install -Dm644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/tf-lib/testcolor.tf - install -Dm644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/tf-lib/tintin.tf - install -Dm644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/tf-lib/grep.tf - install -Dm644 ../lib/tf/tfrc ${DESTDIR}${datadir}/tf-lib/tfrc - install -Dm644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/tf-lib/rwho.tf - install -Dm644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/tf-lib/alias.tf - install -Dm644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/tf-lib/kbbind.tf - install -Dm644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/tf-lib/complete.tf - install -Dm644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/tf-lib/kbregion.tf - install -Dm644 ../lib/tf/color.tf ${DESTDIR}${datadir}/tf-lib/color.tf - install -Dm644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/tf-lib/kb-bash.tf - install -Dm644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/tf-lib/kbstack.tf - install -Dm644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/tf-lib/filexfer.tf - install -Dm644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/tf-lib/activity_status.tf - install -Dm644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/tf-lib/tfstatus.tf - install -Dm644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/tf-lib/relog.tf - install -Dm644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/tf-lib/local-eg.tf - install -Dm644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/tf-lib/stdlib.tf - install -Dm644 ../lib/tf/at.tf ${DESTDIR}${datadir}/tf-lib/at.tf - install -Dm644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/tf-lib/tick.tf - install -Dm644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/tf-lib/kb-os2.tf - install -Dm644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/tf-lib/kbfunc.tf - install -Dm644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/tf-lib/pcmd.tf - install -Dm644 ../lib/tf/map.tf ${DESTDIR}${datadir}/tf-lib/map.tf - install -Dm644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/tf-lib/activity_status2.tf - install -Dm644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/tf-lib/kb-old.tf - install -Dm644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/tf-lib/tr.tf - install -Dm644 ../CHANGES ${DESTDIR}${datadir}/tf-lib/CHANGES - install -Dm644 ../README.md ${DESTDIR}${datadir}/tf-lib/README - install -Dm644 ../lib/tf/examples.old ${DESTDIR}${datadir}/tf-lib/examples.old - install -Dm644 ../lib/py/config.py ${DESTDIR}${datadir}/tf-lib/config.py - install -Dm644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/tf-lib/diffedit.py - install -Dm644 ../lib/py/tf.py ${DESTDIR}${datadir}/tf-lib/tf.py - install -Dm644 ../lib/py/tf4.py ${DESTDIR}${datadir}/tf-lib/tf4.py - install -Dm644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/tf-lib/tfutil.py - install -Dm644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/tf-lib/urlwatch.py + install -d -m755 ${DESTDIR}${datadir} + install -m644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tfrc ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/color.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/at.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/map.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/tf-lib + install -m644 ../CHANGES ${DESTDIR}${datadir}/tf-lib + install -m644 ../README.md ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/examples.old ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/config.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/tf.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/tf4.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/tf-lib makehelp: makehelp.c $(CC) $(CFLAGS) -o makehelp makehelp.c @@ -161,6 +163,8 @@ __always__: ./makehelp < ../lib/tf/tf-help > ../lib/tf/tf-help.idx MANPAGE $(MANPAGE): $(BUILDERS) tf.1.$(MANTYPE)man + install -d -m755 ${DESTDIR}${mandir}/man1 + install -m644 tf.1.${MANTYPE}man ${DESTDIR}${mandir}/man1 cp tf.1.$(MANTYPE)man $(MANPAGE) chmod $(MODE) $(MANPAGE) chmod ugo-x $(MANPAGE) From 01f523547dcb07b6c4e000f6886e4537bc1e5896 Mon Sep 17 00:00:00 2001 From: Karol Lassak Date: Thu, 12 Aug 2021 12:23:03 +0200 Subject: [PATCH 3/7] Use proper names with version to install stuff --- unix/unix.mak | 118 +++++++++++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/unix/unix.mak b/unix/unix.mak index 6de426ec..910368a6 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -84,70 +84,70 @@ PREFIXDIRS: install_TF $(TF): tf$(X) $(BUILDERS) install -d -m755 ${DESTDIR}${bindir} - install -m755 tf${X} ${DESTDIR}${bindir}/tf + install -m755 tf${X} ${DESTDIR}${bindir}/$(TF) SYMLINK $(SYMLINK): $(TF) + test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } LIBRARY $(TF_LIBDIR): ../lib/tf/tf-help ../lib/tf/tf-help.idx install -d -m755 ${DESTDIR}${datadir} - install -m644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tfrc ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/color.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/at.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/map.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/tf-lib - install -m644 ../CHANGES ${DESTDIR}${datadir}/tf-lib - install -m644 ../README.md ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/tf/examples.old ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/config.py ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/tf.py ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/tf4.py ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/tf-lib - install -m644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/tf-lib + install -m644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tfrc ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/color.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/at.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/map.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/tf/examples.old ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/config.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/tf.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/tf4.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -m644 ../CHANGES ${DESTDIR}${datadir}/$(TF_LIBDIR) makehelp: makehelp.c $(CC) $(CFLAGS) -o makehelp makehelp.c From 1f6d73291b488a7c6dcaaf42835578c89c151dc5 Mon Sep 17 00:00:00 2001 From: Karol Lassak Date: Thu, 12 Aug 2021 12:30:46 +0200 Subject: [PATCH 4/7] Fix makefiles --- unix/unix.mak | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/unix/unix.mak b/unix/unix.mak index 910368a6..6eb3a981 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -20,7 +20,7 @@ BUILDERS = Makefile default: all -install: _all PREFIXDIRS $(TF) LIBRARY $(MANPAGE) $(SYMLINK) +install: _all $(TF) LIBRARY $(MANPAGE) $(SYMLINK) @echo @echo '#####################################################' @echo '## TinyFugue installation successful.' @@ -80,14 +80,12 @@ TF tf$(X): $(OBJS) $(BUILDERS) # @# ULTRIX's sh errors here if strip isn't found, despite "true". -test -z "$(STRIP)" || $(STRIP) tf$(X) || true -PREFIXDIRS: - install_TF $(TF): tf$(X) $(BUILDERS) install -d -m755 ${DESTDIR}${bindir} install -m755 tf${X} ${DESTDIR}${bindir}/$(TF) SYMLINK $(SYMLINK): $(TF) - test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } + test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } LIBRARY $(TF_LIBDIR): ../lib/tf/tf-help ../lib/tf/tf-help.idx install -d -m755 ${DESTDIR}${datadir} From 6b397f942308fc38575f299d3281a43ae78a5faf Mon Sep 17 00:00:00 2001 From: Karol Lassak Date: Thu, 12 Aug 2021 12:36:46 +0200 Subject: [PATCH 5/7] Fix makefiles --- unix/unix.mak | 119 +++++++++++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 60 deletions(-) diff --git a/unix/unix.mak b/unix/unix.mak index 6eb3a981..994055ff 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -81,71 +81,70 @@ TF tf$(X): $(OBJS) $(BUILDERS) -test -z "$(STRIP)" || $(STRIP) tf$(X) || true install_TF $(TF): tf$(X) $(BUILDERS) - install -d -m755 ${DESTDIR}${bindir} - install -m755 tf${X} ${DESTDIR}${bindir}/$(TF) + install -D -m755 tf${X} ${DESTDIR}$(TF) SYMLINK $(SYMLINK): $(TF) test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } LIBRARY $(TF_LIBDIR): ../lib/tf/tf-help ../lib/tf/tf-help.idx - install -d -m755 ${DESTDIR}${datadir} - install -m644 ../lib/tf/lisp.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/hanoi.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/spell.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/spedwalk.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kb-emacs.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tf-help.idx ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tools.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/watch.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kb_badterm.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/world-q.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/changes.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/stack-q.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/factoral.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/cylon.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/quoter.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/psh.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/textutil.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/finger.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/savehist.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/textencode.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/spc-page.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/testcolor.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tintin.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/grep.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tfrc ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/rwho.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/alias.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kbbind.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/complete.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kbregion.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/color.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kb-bash.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kbstack.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/filexfer.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/activity_status.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tfstatus.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/relog.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/local-eg.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/stdlib.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/at.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tick.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kb-os2.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kbfunc.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/pcmd.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/map.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/activity_status2.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/kb-old.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/tr.tf ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/tf/examples.old ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/config.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/diffedit.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/tf.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/tf4.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/tfutil.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../lib/py/urlwatch.py ${DESTDIR}${datadir}/$(TF_LIBDIR) - install -m644 ../CHANGES ${DESTDIR}${datadir}/$(TF_LIBDIR) + install -d -m755 ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/lisp.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/hanoi.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/spell.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/spedwalk.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kb-emacs.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tf-help.idx ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tools.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/watch.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kb_badterm.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/world-q.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/changes.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/stack-q.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/factoral.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/cylon.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/quoter.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/psh.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/textutil.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/finger.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/savehist.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/textencode.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/spc-page.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/teraterm.keyboard.cnf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/testcolor.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tintin.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/grep.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tfrc ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/rwho.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/alias.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kbbind.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/complete.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kbregion.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/color.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kb-bash.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kbstack.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/filexfer.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/activity_status.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tfstatus.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/relog.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/local-eg.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/stdlib.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/at.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tick.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kb-os2.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kbfunc.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/pcmd.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/map.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/activity_status2.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/kb-old.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/tr.tf ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/tf/examples.old ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/config.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/diffedit.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/tf.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/tf4.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/tfutil.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../lib/py/urlwatch.py ${DESTDIR}$(TF_LIBDIR) + install -m644 ../CHANGES ${DESTDIR}$(TF_LIBDIR) makehelp: makehelp.c $(CC) $(CFLAGS) -o makehelp makehelp.c From 7ab8008ce4b933ea16b9c2e302fb071c9a70a8ba Mon Sep 17 00:00:00 2001 From: Karol Lassak Date: Thu, 12 Aug 2021 12:56:31 +0200 Subject: [PATCH 6/7] Fix makefiles --- unix/unix.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/unix.mak b/unix/unix.mak index 994055ff..df4d49e4 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -81,7 +81,7 @@ TF tf$(X): $(OBJS) $(BUILDERS) -test -z "$(STRIP)" || $(STRIP) tf$(X) || true install_TF $(TF): tf$(X) $(BUILDERS) - install -D -m755 tf${X} ${DESTDIR}$(TF) + install -m755 tf${X} ${DESTDIR}$(TF) SYMLINK $(SYMLINK): $(TF) test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } From 4f0296c9abf68c9e7c1d760ef3ace6c3c080627b Mon Sep 17 00:00:00 2001 From: Karol Lassak Date: Tue, 21 Sep 2021 14:23:40 +0200 Subject: [PATCH 7/7] Fix bindir creation --- unix/unix.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/unix.mak b/unix/unix.mak index df4d49e4..158c6203 100644 --- a/unix/unix.mak +++ b/unix/unix.mak @@ -81,6 +81,7 @@ TF tf$(X): $(OBJS) $(BUILDERS) -test -z "$(STRIP)" || $(STRIP) tf$(X) || true install_TF $(TF): tf$(X) $(BUILDERS) + install -d -m755 ${DESTDIR}$(bindir) install -m755 tf${X} ${DESTDIR}$(TF) SYMLINK $(SYMLINK): $(TF)