summaryrefslogtreecommitdiff
path: root/systems/unix/tex-fpc/ch.ch/mktrap
diff options
context:
space:
mode:
Diffstat (limited to 'systems/unix/tex-fpc/ch.ch/mktrap')
-rwxr-xr-xsystems/unix/tex-fpc/ch.ch/mktrap19
1 files changed, 19 insertions, 0 deletions
diff --git a/systems/unix/tex-fpc/ch.ch/mktrap b/systems/unix/tex-fpc/ch.ch/mktrap
new file mode 100755
index 0000000000..dc3b8e7a72
--- /dev/null
+++ b/systems/unix/tex-fpc/ch.ch/mktrap
@@ -0,0 +1,19 @@
+# change change blocks to prepare the trap test
+mkini mf \
+&& mkstats mf\
+&& mkdebug mf\
+&& mkchatty mf\
+&& ed mf.ch <<'END'
+g/^ @x trap/.,/^@z/s/^ //\
+?^@x?,.p
+w
+q
+END
+test $? = 0 \
+&& ed mf.ch <<'END'
+g/^@x part/.,/^@z/s/^/ /\
+?^ @x?,.p
+w
+q
+END
+test $? = 0 || (echo $0 failed ; exit 1)