diff options
author | Manoj Srivastava <srivasta@debian.org> | 2014-04-28 12:58:58 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2014-04-28 12:58:58 -0700 |
commit | 0a1f51622867ec21ea8a8756032fdeab13d74227 (patch) | |
tree | 9a20fe09e6b92435dad6219de978948f873d33f7 /mcon/U/sh.U |
dist (1:3.5-36-2) unstable; urgency=low
* Updated translation for Brazilian Portuguese
* Bug fix: "[INTL:pt_BR] Brazilian Portuguese debconf templates
translation", thanks to Adriano Rafael Gomes (Closes: #685763).
# imported from the archive
Diffstat (limited to 'mcon/U/sh.U')
-rw-r--r-- | mcon/U/sh.U | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/mcon/U/sh.U b/mcon/U/sh.U new file mode 100644 index 0000000..9684c6f --- /dev/null +++ b/mcon/U/sh.U @@ -0,0 +1,92 @@ +?RCS: $Id: sh.U 167 2013-05-08 17:58:00Z rmanfredi $ +?RCS: +?RCS: Copyright (c) 1997, Chip Salzenberg +?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?RCS: $Log: sh.U,v $ +?RCS: Revision 3.0.1.1 1997/02/28 16:20:13 ram +?RCS: patch61: created +?RCS: +?MAKE:sh: Head +?MAKE: -pick wipe $@ %< +?S:sh: +?S: This variable contains the full pathname of the shell used +?S: on this system to execute Bourne shell scripts. Usually, this will be +?S: /bin/sh, though it's possible that some systems will have /bin/ksh, +?S: /bin/pdksh, /bin/ash, /bin/bash, or even something such as +?S: D:/bin/sh.exe. +?S: This unit comes before Options.U, so you can't set sh with a -D +?S: option, though you can override this (and startsh) +?S: with -O -Dsh=/bin/whatever -Dstartsh=whatever +?S:. +?C:SH_PATH: +?C: This symbol contains the full pathname to the shell used on this +?C: on this system to execute Bourne shell scripts. Usually, this will be +?C: /bin/sh, though it's possible that some systems will have /bin/ksh, +?C: /bin/pdksh, /bin/ash, /bin/bash, or even something such as +?C: D:/bin/sh.exe. +?C:. +?H:#define SH_PATH "$sh" /**/ +?H:. +?T:xxx try pth p SYSTYPE +?LINT:extern maintloc maintname +?X: +?X: Be quiet unless something unusual happens because this gets +?X: loaded up even before options are processed. +?X: Can't use ./loc because that depends on startsh, which, in turn +?X: depends on this unit. +?X: +: Find the basic shell for Bourne shell scripts +case "$sh" in +'') +?X: SYSTYPE is for some older MIPS systems. +?X: I do not know if it is still needed. + case "$SYSTYPE" in + *bsd*|sys5*) xxx="/$SYSTYPE/bin/sh";; + *) xxx='/bin/sh';; + esac + if test -f "$xxx"; then + sh="$xxx" + else + : Build up a list and do a single loop so we can 'break' out. + pth=`echo $PATH | sed -e "s/$p_/ /g"` + for xxx in sh bash ksh pdksh ash; do + for p in $pth; do + try="$try ${p}/${xxx}" + done + done + for xxx in $try; do + if test -f "$xxx"; then + sh="$xxx" + break + elif test -f "$xxx$_exe"; then + sh="$xxx$_exe" + break + elif test -f "$xxx.exe"; then + sh="$xxx.exe" + break + fi + done + fi + ;; +esac + +?X: fd 4 isn't open yet... +case "$sh" in +'') cat >&2 <<EOM +$me: Fatal Error: I can't find a Bourne Shell anywhere. + +Usually it's in /bin/sh. How did you even get this far? +Please contact me (<$maintname>) at <$maintloc> and +we'll try to straighten this all out. +EOM + exit 1 + ;; +esac + |