mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-24 00:32:56 +00:00
import a basic rpm_prep tree script, saves from having to type the --define topdir everytime
This commit is contained in:
parent
c61c1ca391
commit
aa6d96a3e9
1 changed files with 7 additions and 0 deletions
7
rpm_tree_prep.sh
Normal file
7
rpm_tree_prep.sh
Normal 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
|
Loading…
Add table
Reference in a new issue