diff options
author | Olaf Weber <olaf@infovore.xs4all.nl> | 2009-07-31 13:09:53 +0000 |
---|---|---|
committer | Olaf Weber <olaf@infovore.xs4all.nl> | 2009-07-31 13:09:53 +0000 |
commit | 2abdb7076466a50bcd04b4221bb7671cfe3041d4 (patch) | |
tree | a2aebfce755fda224d77009e7a097ea402d0c6fe /Master/bin/mips-irix/texlinks | |
parent | 20c3e5d488c82159cc80f4bf385b4587a33da8b3 (diff) |
New IRIX binaries.
git-svn-id: svn://tug.org/texlive/trunk@14509 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/mips-irix/texlinks')
-rwxr-xr-x | Master/bin/mips-irix/texlinks | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/Master/bin/mips-irix/texlinks b/Master/bin/mips-irix/texlinks index d8e51550924..c77ceea60c0 100755 --- a/Master/bin/mips-irix/texlinks +++ b/Master/bin/mips-irix/texlinks @@ -1,4 +1,5 @@ #!/bin/sh +# $Id: texlinks 13904 2009-06-23 00:47:00Z karl $ # Thomas Esser, 1999, 2002, 2003. public domain. @@ -38,24 +39,26 @@ export PATH # hack around a bug in zsh: test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' -cnf=fmtutil.cnf # name of the config file -version=20080528.1847 # utc timestamp +version=20090623.0228 progname=texlinks +cnf=fmtutil.cnf # name of the config file usage='Usage: texlinks [OPTION]... [DIRECTORY]... Create symbolic links format -> engine according to fmtutil setup. Mandatory arguments to long options are mandatory for short options too. - -h, --help show this help text - --version show version string + -e, --exeext EXT append EXT to symlink targets (default: none) -f, --cnffile FILE use FILE as config file (default: fmtutil.cnf) - -v, --verbose enable verbose messages (default: off) -m, --multiplatform operate in all platform specific directories (default: operate only in directory for this platform) - -s, --silent silently skip existing scripts / binaries + -q, --quiet silently skip existing scripts / binaries (default: issue warning) + -s, --silent same as -q -u, --unlink remove symlinks created by texlinks + -v, --verbose enable verbose messages (default: off) + -h, --help show this help text + --version show version string The DIRECTORY arguments are an optional list of directories in which to operate. If no directories are specified and --multiplatform is @@ -125,7 +128,8 @@ check_for_binary() ############################################################################### # install_link(dest src) # create a symlink like ln -s dest src, but make sure that src is not -# an existing binary +# an existing binary, possibly adding the executable extension if +# passed on the command. ############################################################################### install_link() { @@ -148,6 +152,9 @@ install_link() ;; esac + # append .exe if supplied (for cygwin). + test -n "$exeext" && dest="$dest$exeext" + case $src in */cont-??|*/mptopdf) # context includes wrapper scripts that create/run these. @@ -155,7 +162,7 @@ install_link() ;; *) test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" && - verbose_do rm -f "$src" + rm -f "$src" if test -f "$src"; then case $silent in @@ -235,6 +242,7 @@ main() dirs= needsCleanup=false + exeext= multiplatform=false verbose=false unlink=false @@ -247,13 +255,14 @@ main() --h*|-h) echo "$usage"; exit 0;; --version) - echo "$progname version $version."; exit 0;; + echo "$progname version $version"; exit 0;; --cnffile|-f) shift; cnf_file=$1;; - --v*|-v) verbose=true;; - --s*|-s) silent=true;; + --e*|-e) shift; exeext=$1;; --m*|-m) multiplatform=true;; + --s*|-s|--q*|-q) silent=true;; --u*|-u) unlink=true;; + --v*|-v) verbose=true;; -*) errmsg "fmtutil: unknown option \`$1' ignored.";; *) break;; esac |