mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
1f0164aa5b
character code, this one is a Japanese publisher) versions. Many files from this port (including the Makefile, hence the "?=" in DISTNAME) are used for jtex209-ntt an jtex209-ascii ports. Submitted by: mita@jp.FreeBSD.org
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
#!/bin/sh
|
|
# linkselect.sh
|
|
rm -f /usr/local/share/tex/aformats/jtex.fmt
|
|
rm -f /usr/local/share/tex/aformats/jlatex.fmt
|
|
rm -f /usr/local/share/tex/nformats/jtex.fmt
|
|
rm -f /usr/local/share/tex/nformats/jlatex.fmt
|
|
rm -f /usr/local/bin/jtex
|
|
rm -f /usr/local/bin/jlatex
|
|
echo "Which jlatex do you like to run by 'jlatex' command?"
|
|
echo "1. ASCII pTeX as jlatex"
|
|
echo "2. NTT jTeX as jlatex"
|
|
echo "3. I like to use ajlatex for ASCII and njlatex for NTT(Default)."
|
|
read CHOICE
|
|
case ${CHOICE} in
|
|
1)
|
|
echo "Run ASCII jTeX by 'jlatex' command" ;
|
|
echo
|
|
ln -s /usr/local/share/tex/aformats/ajtex.fmt /usr/local/share/tex/aformats/jtex.fmt
|
|
ln -s /usr/local/share/tex/aformats/ajlatex.fmt /usr/local/share/tex/aformats/jlatex.fmt
|
|
ln -s /usr/local/bin/viratex /usr/local/bin/jtex
|
|
ln -s /usr/local/bin/viratex /usr/local/bin/jlatex
|
|
;;
|
|
2)
|
|
echo "Run NTT jTeX by 'jlatex' command" ;
|
|
echo
|
|
ln -s /usr/local/share/tex/nformats/njtex.fmt /usr/local/share/tex/nformats/jtex.fmt
|
|
ln -s /usr/local/share/tex/nformats/njlatex.fmt /usr/local/share/tex/nformats/jlatex.fmt
|
|
ln -s /usr/local/bin/virjtex /usr/local/bin/jtex
|
|
ln -s /usr/local/bin/virjtex /usr/local/bin/jlatex
|
|
;;
|
|
*)
|
|
echo "Default."
|
|
;;
|
|
esac
|