aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-08 13:39:12 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-08 13:39:12 +0300
commit7dd6ac742880bd0b2eca2c31f2e7dc19598e2d94 (patch)
treec945c7c49458b06b6e166200e17b21bc85ce5d33 /lib
parentaadc6af58cd8533b504b0c418a8c06e06b33a340 (diff)
downloadsciteco-7dd6ac742880bd0b2eca2c31f2e7dc19598e2d94.tar.gz
don't install the standalone scripts from lib/ as actual scripts: should fix CI and nightlies
* They would get the --program-prefix. * If they aren't installed as real scripts, there is no point in fixing up their hash-bang lines. * The hash-bang line fix won't work on Windows anyway, so they are now disabled for grosciteco and tedoc as well.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am19
-rwxr-xr-xlib/repl.tes2
-rwxr-xr-xlib/tecat.tes10
3 files changed, 14 insertions, 17 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index ae57c47..e6f9053 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,20 +1,11 @@
-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_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)
+# Standalone scripts.
+# These are not installed via _SCRIPTS as it would add the --program-prefix.
+# Since they won't get the executable flag, it makes no sense to fix up their
+# hash-bang lines as well.
+dist_scitecolib_DATA += repl.tes tecat.tes
# Helper script for creating lexer definitions
EXTRA_DIST = scite2co.lua
diff --git a/lib/repl.tes b/lib/repl.tes
index b830e8b..dbbf3ce 100755
--- a/lib/repl.tes
+++ b/lib/repl.tes
@@ -5,7 +5,7 @@
* Requires an ANSI-compatible terminal.
*
* Currently, you must set the terminal characteristics on the outside:
- * stty raw opost icrnl && /usr/local/share/sciteco/lib/repl.tes
+ * stty raw opost icrnl && sciteco -m /usr/local/share/sciteco/lib/repl.tes
*
* You can launch into interactive mode by typing -u#ex
*
diff --git a/lib/tecat.tes b/lib/tecat.tes
index b6ff994..5432997 100755
--- a/lib/tecat.tes
+++ b/lib/tecat.tes
@@ -2,8 +2,14 @@
!*
* Replace all control characters with printable representations as in SciTECO.
* These characters are printed in reverse using ANSI escape sequences.
- * This is especially useful as the diff textconv filter for Git as in
- * git config --global diff.teco.textconv /usr/local/share/sciteco/lib/tecat.tes
+ * This is especially useful as a textconv filter for Git as in
+ * git config --global diff.teco.textconv "sciteco -8qm /usr/local/share/sciteco/lib/tecat.tes"
+ *
+ * You also have to add the following to ~/.gitattributes:
+ * *.teco_ini diff=teco
+ * .teco_session diff=teco
+ * *.tes diff=teco
+ * *.tec diff=teco
*!
0,2EJ !* FIXME: Memory limiting may be too slow *!
:Q#1"> EBN#1 '