diff --git a/rpm_tree_prep.sh b/rpm_tree_prep.sh new file mode 100644 index 0000000..0710eec --- /dev/null +++ b/rpm_tree_prep.sh @@ -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