summaryrefslogtreecommitdiff
path: root/japanese/jtex209-both/files/linkselect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/jtex209-both/files/linkselect.sh')
-rw-r--r--japanese/jtex209-both/files/linkselect.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/japanese/jtex209-both/files/linkselect.sh b/japanese/jtex209-both/files/linkselect.sh
new file mode 100644
index 000000000000..46db7015ee58
--- /dev/null
+++ b/japanese/jtex209-both/files/linkselect.sh
@@ -0,0 +1,34 @@
+#!/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