]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build-rpms.sh: copy "*.patch" from topdir into SOURCES 12/head
authorDan Mick <dan.mick@inktank.com>
Wed, 13 Aug 2014 01:23:15 +0000 (18:23 -0700)
committerDan Mick <dan.mick@inktank.com>
Wed, 13 Aug 2014 04:28:33 +0000 (21:28 -0700)
This allows patches to be applied when building the RPMs; the addition
of the ceph patch to disable /etc/init.d/ceph from autostarting Ceph
daemons leads to the desire for a .patch file, conditionally applied
by the .spec.  See the Ceph sources.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
build_rpms.sh

index cd4ed8ba6dc082103f3551be12d4afa0a6fa26b7..6093d62ba28574a72144f64708d2ec8ed916ba91 100755 (executable)
@@ -25,6 +25,7 @@ BUILDAREA=./rpm/$dist
 mkdir -p ${BUILDAREA}/{SOURCES,SRPMS,SPECS,RPMS,BUILD}
 cp -a ceph-*.tar.bz2 ${BUILDAREA}/SOURCES/.
 cp -a ceph.spec ${BUILDAREA}/SPECS/.
+cp -a *.patch ${BUILDAREA}/SOURCES/. || true
 
 # Build RPMs
 BUILDAREA=`readlink -fn ${BUILDAREA}`   ### rpm wants absolute path