import a basic rpm_prep tree script, saves from having to type the --define topdir everytime

This commit is contained in:
Karanbir Singh 2014-06-17 13:27:51 +01:00
parent c61c1ca391
commit aa6d96a3e9

7
rpm_tree_prep.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# we need some sanity here, plus some tests rather than
# blindly hitting rpmbuild and cp -a
rpmbuild --define "%_topdir `pwd`" -bp --nodeps SPECS/*.spec
bpn=$( ls BUILD )
cp -a BUILD/${bpn} BUILD/${bpn}__orig