summaryrefslogtreecommitdiff
path: root/systems/unix/tex-fpc/shell
diff options
context:
space:
mode:
Diffstat (limited to 'systems/unix/tex-fpc/shell')
-rwxr-xr-xsystems/unix/tex-fpc/shell/itgl6
-rwxr-xr-xsystems/unix/tex-fpc/shell/mk_MF_dir3
-rwxr-xr-xsystems/unix/tex-fpc/shell/mk_TeX_dir6
-rwxr-xr-xsystems/unix/tex-fpc/shell/mkfont15
-rwxr-xr-xsystems/unix/tex-fpc/shell/mkpkfont19
-rwxr-xr-xsystems/unix/tex-fpc/shell/tgl6
-rwxr-xr-xsystems/unix/tex-fpc/shell/wve6
7 files changed, 61 insertions, 0 deletions
diff --git a/systems/unix/tex-fpc/shell/itgl b/systems/unix/tex-fpc/shell/itgl
new file mode 100755
index 0000000000..2fca45acc6
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/itgl
@@ -0,0 +1,6 @@
+case $# in
+1) b=`basename $1 .web`; tangle $1 /dev/null ini$b.p $b.pool;;
+2) b=`basename $2 .ch`; tangle $1 $2 ini$b.p $b.pool;;
+*) echo Usage: `basename $0` web-file [ ch-file ] ; exit 1
+esac && \
+fpc ini$b.p
diff --git a/systems/unix/tex-fpc/shell/mk_MF_dir b/systems/unix/tex-fpc/shell/mk_MF_dir
new file mode 100755
index 0000000000..f91e0156c8
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/mk_MF_dir
@@ -0,0 +1,3 @@
+# Prepare the current directory to run METAFONT, mkfont and mkpkfont
+ln -s ~/MFbases .
+ln -s ~/MFinputs .
diff --git a/systems/unix/tex-fpc/shell/mk_TeX_dir b/systems/unix/tex-fpc/shell/mk_TeX_dir
new file mode 100755
index 0000000000..bf6dcaa8c1
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/mk_TeX_dir
@@ -0,0 +1,6 @@
+# Prepare the current directory to run TeX, dvips and xdvi
+ln -s ~/TeXinputs .
+ln -s ~/TeXformats .
+ln -s ~/TeXfonts .
+ln -s ~/PKfonts .
+ln -s ~/DVIPSconf .
diff --git a/systems/unix/tex-fpc/shell/mkfont b/systems/unix/tex-fpc/shell/mkfont
new file mode 100755
index 0000000000..06d8dd3506
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/mkfont
@@ -0,0 +1,15 @@
+# Install .tfm and . pk files from .mf files for TeX-GPC
+f=`basename $1 .mf`
+case $# in
+1) mag=1;;
+2) mag=$2;;
+*) echo Usage: $0 mf-file [ magnification ]; exit 1
+esac
+echo $0: $f magnification=$mag
+rm -f $f.*gf
+mf "\\mode=localfont; mag=$mag; batchmode; input $1"\
+&& gftopk $f.*gf `echo $f.*gf | sed 's/gf$/pk/'` \
+&& mv $f.*pk PKfonts/ \
+&& mv $f.tfm TeXfonts/ \
+&& rm $f.log && rm $f.*gf \
+|| echo $0 $1 $mag >>trouble
diff --git a/systems/unix/tex-fpc/shell/mkpkfont b/systems/unix/tex-fpc/shell/mkpkfont
new file mode 100755
index 0000000000..4eb23f8ac3
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/mkpkfont
@@ -0,0 +1,19 @@
+# install pk-file from mf-file for TeX-GPC
+#
+# xdvi expects the path name of the generated .pk file in the first
+# line of stdout, so redirect mf's stdout to stderr.
+f=`basename $1 .mf`
+case $# in
+1) mag=1;;
+2) mag=$2;;
+*) echo Usage: $0 mf-file [ magnification ]; exit 1
+esac
+rm -f $f.*gf
+rm -f $f.*pk
+mf '\mode=localfont; mag='$mag'; batchmode; input' $1 </dev/null >&2 \
+&& pkname=`echo $f.*gf | sed 's/gf$/pk/'` \
+&& gftopk $f.*gf $pkname >&2 \
+&& mv $f.*pk PKfonts/ \
+&& echo PKfonts/$pkname \
+&& rm $f.tfm && rm $f.log && rm $f.*gf \
+|| (echo $0 $1 $mag >>trouble; exit 1)
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
diff --git a/systems/unix/tex-fpc/shell/wve b/systems/unix/tex-fpc/shell/wve
new file mode 100755
index 0000000000..a445975cb6
--- /dev/null
+++ b/systems/unix/tex-fpc/shell/wve
@@ -0,0 +1,6 @@
+case $# in
+1) b=`basename $1 .web`; weave $1 /dev/null $b.tex;;
+2) b=`basename $1 .web`; weave $1 $2 $b.tex;;
+*) echo Usage: `basename $0` web-file [ ch-file ]; exit 1
+esac && \
+tex $b