From 63f6de2319e769e12b29379025de08e3395edb31 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 28 Dec 2005 00:09:08 +0000 Subject: trunk git-svn-id: svn://tug.org/texlive/trunk@10 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/x86_64-linux/sjispdflatex | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 Master/bin/x86_64-linux/sjispdflatex (limited to 'Master/bin/x86_64-linux/sjispdflatex') diff --git a/Master/bin/x86_64-linux/sjispdflatex b/Master/bin/x86_64-linux/sjispdflatex new file mode 100755 index 00000000000..294c5b188d0 --- /dev/null +++ b/Master/bin/x86_64-linux/sjispdflatex @@ -0,0 +1,26 @@ +#! /bin/sh + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +sjisconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF -- cgit v1.2.3