summaryrefslogtreecommitdiff
path: root/systems/unix/tex-fpc/shell/tgl
diff options
context:
space:
mode:
Diffstat (limited to 'systems/unix/tex-fpc/shell/tgl')
-rwxr-xr-xsystems/unix/tex-fpc/shell/tgl6
1 files changed, 6 insertions, 0 deletions
diff --git a/systems/unix/tex-fpc/shell/tgl b/systems/unix/tex-fpc/shell/tgl
new file mode 100755
index 0000000000..cb390d3150
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/tgl
@@ -0,0 +1,6 @@
+case $# in
+1) b=`basename $1 .web`; tangle $1 /dev/null $b.p /dev/null;;
+2) b=`basename $2 .ch`; tangle $1 $2 $b.p /dev/null;;
+*) echo Usage: `basename $0` web-file [ ch-file ] ; exit 1
+esac && \
+fpc $b.p