aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Makefile.am
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-07 20:07:34 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-07 20:15:58 +0300
commit0da832023b3d7d0921de1f76acbf6dd2595341d0 (patch)
treefcddc59d0a952a6a2a5455152480bf9df2f9b0f6 /lib/Makefile.am
parentc385217bbb6448eb21d0cb1568e3cc10c47d0b5b (diff)
downloadsciteco-0da832023b3d7d0921de1f76acbf6dd2595341d0.tar.gz
added tecat.tes to standard library: can be installed as the Git textconv filter
tecat.tes and repl.tes are now executable scripts, even though they are installed into the $SCITECOPATH. This is still much slower than the Lua version here: https://gist.github.com/rhaberkorn/6534ecf1b05de6216d0a9c33f31ab5f8
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 194802f..ae57c47 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,9 +1,20 @@
+include $(top_srcdir)/bootstrap.am
dist_scitecolib_DATA = color.tes lexer.tes session.tes opener.tes \
fnkeys.tes string.tes getopt.tes
# standalone scripts
-dist_scitecolib_DATA += repl.tes
+dist_scitecolib_SCRIPTS = repl.tes tecat.tes
+
+# Fix up the hash-bang line of installed SciTECO scripts upon
+# installation to refer to the installed sciteco binary.
+# This takes --program-prefix into account.
+#
+# FIXME: This will patch the hash-bang line repeatedly.
+install-data-hook:
+ $(SCITECO_FULL) -e "<%i^[ :Q[^A^E\\i]:; @EB'$(DESTDIR)$(scitecolibdir)/^EN[^A^E\\i]'> 1U* \
+ EJ-1<%*^[ 0,^Q::@FR'#!^EM^Xsciteco'#!$(SCITECO_INSTALLED)'> \
+ :EX" $(dist_scitecolib_SCRIPTS)
# Helper script for creating lexer definitions
EXTRA_DIST = scite2co.lua