blob: 0f48f4d79f8c169c66d95bd1d62b255ae445c0f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|