From 44a321cb8a42d6c0ea2d96a1086a17f2134c89cc Mon Sep 17 00:00:00 2001 From: Ethan Galstad Date: Thu, 28 Feb 2002 06:42:51 +0000 Subject: Initial revision git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2 f882894a-f735-0410-b71e-b25c423dba1c --- rpm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rpm (limited to 'rpm') diff --git a/rpm b/rpm new file mode 100644 index 00000000..0f48f4d7 --- /dev/null +++ b/rpm @@ -0,0 +1,22 @@ +#!/bin/sh + +rpm --showrc | grep macrofiles | sed 's/$/:\.\/rpmmacros/' > rpmrc +echo %_sourcedir $PWD/SOURCES > rpmmacros +echo %_rpmdir $PWD/RPMS >> rpmmacros +echo %_srcrpmdir $PWD/SRPMS >> rpmmacros +echo >> rpmmacros + +if test -f $HOME/.rpmrc; then + mv $HOME/.rpmrc $HOME/.rpmrcsave + cat $HOME/.rpmrcsave ./rpmrc > $HOME/.rpmrc +else + cat ./rpmrc > $HOME/.rpmrc +fi + +rpm $@ + +if test -f $HOME/.rpmrcsave; then + mv $HOME/.rpmrcsave $HOME/.rpmrc +else + rm $HOME/.rpmrc +fi -- cgit v1.2.3-74-g34f1