ngompa / centos-git-common

Forked from centos-git-common 3 years ago
Clone

Blame rpm-tree-prep.sh

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