From aa6d96a3e91ebccd9ec92385e234397285bd523f Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Jun 17 2014 12:27:51 +0000 Subject: import a basic rpm_prep tree script, saves from having to type the --define topdir everytime --- 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