summaryrefslogtreecommitdiff
path: root/systems/unix/tex-fpc/ch.ch/mkunstats
diff options
context:
space:
mode:
Diffstat (limited to 'systems/unix/tex-fpc/ch.ch/mkunstats')
-rwxr-xr-xsystems/unix/tex-fpc/ch.ch/mkunstats12
1 files changed, 12 insertions, 0 deletions
diff --git a/systems/unix/tex-fpc/ch.ch/mkunstats b/systems/unix/tex-fpc/ch.ch/mkunstats
new file mode 100755
index 0000000000..6021be7bef
--- /dev/null
+++ b/systems/unix/tex-fpc/ch.ch/mkunstats
@@ -0,0 +1,12 @@
+# deactivate stats blocks in tex.ch or in mf.ch to turn statistic off.
+case $# in
+1) tm=$1 ;;
+*) tm=tex ;;
+esac
+ed $tm.ch <<'END'
+g/^@x stat/.,/^@z/s/^/ /\
+?^ @x?,.p
+w
+q
+END
+test $? = 0 || (echo $0 $1 failed ; exit 1)