centos-git-common/rpm-tree-prep.sh
2014-06-17 14:56:56 +01:00

7 lines
224 B
Bash

#!/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