docs-common/bin db2rpm-info,1.4,1.5

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Sun Jan 29 15:38:54 UTC 2006


Author: jtr

Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30650/bin

Modified Files:
	db2rpm-info 
Log Message:
Allow *any* modern shell.



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




More information about the Fedora-docs-commits mailing list