diff options
author | jbj <devnull@localhost> | 2000-01-27 22:38:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-01-27 22:38:41 +0000 |
commit | ef9f2f731f2f1803d5d0c533f5d55690b09f403c (patch) | |
tree | 93af2f9e6791742a503aa33cfe4e6f6b67605c0b | |
parent | 64f2549d63dbd2dad25257fb221470c20da6e083 (diff) | |
download | librpm-tizen-ef9f2f731f2f1803d5d0c533f5d55690b09f403c.tar.gz librpm-tizen-ef9f2f731f2f1803d5d0c533f5d55690b09f403c.tar.bz2 librpm-tizen-ef9f2f731f2f1803d5d0c533f5d55690b09f403c.zip |
Permit rpmrc/macros file as args to convetrpmrc.sh.
CVS patchset: 3538
CVS date: 2000/01/27 22:38:41
-rw-r--r-- | scripts/convertrpmrc.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/convertrpmrc.sh b/scripts/convertrpmrc.sh index 41e0a0460..7faa5d376 100644 --- a/scripts/convertrpmrc.sh +++ b/scripts/convertrpmrc.sh @@ -5,8 +5,10 @@ # prereq: awk fileutils textutils sh-utils mktemp # -RPMRC=/etc/rpmrc -MACROS=/etc/rpm/macros +RPMRC=$1 +[ -z "$RPMRC" ] && RPMRC=/etc/rpmrc +MACROS=$2 +[ -z "$MACROS" ] && MACROS=/etc/rpm/macros # for testing #RPMRC=/tmp/rpmrc #MACROS=/tmp/macros @@ -25,7 +27,7 @@ DIRN="`dirname $MACROS`" exit 1 } -TMP=$(mktemp rpmrc.XXXXXX) || { +TMP=$(mktemp /tmp/rpmrc.XXXXXX) || { echo could not create temp file 1>&2 exit 1 } |