docs-common/bin db2rpm-info,1.4,1.5
Paul W. Frields
stickster at gmail.com
Sun Jan 29 21:56:26 UTC 2006
On Sun, 2006-01-29 at 10:38 -0500, Tommy Reynolds wrote:
> Log Message:
> Allow *any* modern shell.
[...snip...]
> Index: db2rpm-info
> ===================================================================
> RCS file: /cvs/docs/docs-common/bin/db2rpm-info,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- db2rpm-info 28 Jan 2006 20:41:45 -0000 1.4
> +++ db2rpm-info 29 Jan 2006 15:38:45 -0000 1.5
> @@ -1,6 +1,6 @@
> -#!/bin/bash
> -ME=$(basename $0)
> -BINDIR=$(dirname $0)
> +#!/bin/sh
> +ME=`basename $0`
> +BINDIR=`dirname $0`
> USAGE="usage: ${ME} [-o ofile] document.xml"
> ofile=
> while getopts o: c
> @@ -10,7 +10,7 @@
> *) echo "${USAGE}" >&2; exit 1;;
> esac
> done
> -shift $(expr ${OPTIND} - 1)
> +shift `expr ${OPTIND} - 1`
> if [ $# -ne 1 ]; then
> echo "${USAGE}" >&2
> exit 1
Even better, thanks Tommy!
--
Paul W. Frields, RHCE http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
Fedora Documentation Project: http://fedora.redhat.com/projects/docs/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20060129/fcb14a0f/attachment.sig>
More information about the fedora-docs-list
mailing list