diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
commit | 487ca4806cc046076293cf6cc5fbba0db282bac7 (patch) | |
tree | 847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/cjkutils/scripts | |
parent | a3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff) |
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/cjkutils/scripts')
-rw-r--r-- | Build/source/texk/cjkutils/scripts/Makefile.in | 29 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/bg5latex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/bg5pdflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/cef5latex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/cef5pdflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/ceflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/cefpdflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/cefslatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/cefspdflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/gbklatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/gbkpdflatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/sjislatex | 26 | ||||
-rwxr-xr-x | Build/source/texk/cjkutils/scripts/sjispdflatex | 26 |
13 files changed, 341 insertions, 0 deletions
diff --git a/Build/source/texk/cjkutils/scripts/Makefile.in b/Build/source/texk/cjkutils/scripts/Makefile.in new file mode 100644 index 00000000000..9b1817fc795 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/Makefile.in @@ -0,0 +1,29 @@ +kpse_include ../make/paths.mk +kpse_include ../make/common.mk + +programs = +scripts = bg5latex bg5pdflatex \ + cef5latex cef5pdflatex \ + ceflatex cefpdflatex \ + cefslatex cefspdflatex \ + sjislatex sjispdflatex \ + gbklatex gbkpdflatex + +default all: + +install: install-exec install-data +uninstall: uninstall-exec uninstall-data +install-exec: all + $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) + for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p $(scriptdir); done + ln -sf gbklatex $(scriptdir)/bg5+latex + ln -sf gbkpdflatex $(scriptdir)/bg5+pdflatex +uninstall-exec: + for p in $(scripts); do $(RM) $(scriptdir)/$$p; done + +install-data: +uninstall-data: + +kpse_include ../make/clean.mk + +distclean:: diff --git a/Build/source/texk/cjkutils/scripts/bg5latex b/Build/source/texk/cjkutils/scripts/bg5latex new file mode 100755 index 00000000000..b9a36fa844c --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/bg5latex @@ -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 + +bg5conv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/bg5pdflatex b/Build/source/texk/cjkutils/scripts/bg5pdflatex new file mode 100755 index 00000000000..f65d86d5417 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/bg5pdflatex @@ -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] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +bg5conv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/cef5latex b/Build/source/texk/cjkutils/scripts/cef5latex new file mode 100755 index 00000000000..b8917c1cd26 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/cef5latex @@ -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 + +cef5conv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/cef5pdflatex b/Build/source/texk/cjkutils/scripts/cef5pdflatex new file mode 100755 index 00000000000..bd398e0240c --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/cef5pdflatex @@ -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] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cef5conv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/ceflatex b/Build/source/texk/cjkutils/scripts/ceflatex new file mode 100755 index 00000000000..50c5be54fd9 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/ceflatex @@ -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 + +cefconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/cefpdflatex b/Build/source/texk/cjkutils/scripts/cefpdflatex new file mode 100755 index 00000000000..0615149c5b9 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/cefpdflatex @@ -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] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cefconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/cefslatex b/Build/source/texk/cjkutils/scripts/cefslatex new file mode 100755 index 00000000000..fb2944ceda7 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/cefslatex @@ -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 + +cefsconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/cefspdflatex b/Build/source/texk/cjkutils/scripts/cefspdflatex new file mode 100755 index 00000000000..1985eebe5c8 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/cefspdflatex @@ -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 + +cefsconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/gbklatex b/Build/source/texk/cjkutils/scripts/gbklatex new file mode 100755 index 00000000000..c7fcf7f13bc --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/gbklatex @@ -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 + +extconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/gbkpdflatex b/Build/source/texk/cjkutils/scripts/gbkpdflatex new file mode 100755 index 00000000000..6cdb3cfee51 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/gbkpdflatex @@ -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] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +extconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/sjislatex b/Build/source/texk/cjkutils/scripts/sjislatex new file mode 100755 index 00000000000..2c9bc229c7b --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/sjislatex @@ -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 latex "$argv" "\$aux" + +# EOF diff --git a/Build/source/texk/cjkutils/scripts/sjispdflatex b/Build/source/texk/cjkutils/scripts/sjispdflatex new file mode 100755 index 00000000000..294c5b188d0 --- /dev/null +++ b/Build/source/texk/cjkutils/scripts/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 |