The patch unrolling tool, build/extract_patches, currently will
create an empty dpatch if a commit is empty. This causes dpatch
some heartburn, so just skip empty commits.
Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ice0e5fad3c1dd01b507838a8b449536d016b8ffb
Reviewed-on: http://review.whamcloud.com/908
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
build/autoconf/lustre-build-darwin.m4 \
build/autoconf/lustre-build.m4 build/rdac_spec \
build/mptlinux.spec.patch build/patches \
- build/funcs.sh build/find_linux_rpms build/exit_traps.sh
+ build/funcs.sh build/find_linux_rpms build/exit_traps.sh \
+ build/extract_patches
rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
CONFIGURE_ARGS=$$(echo $$(eval echo $(ac_configure_args)) | sed -re 's/--(en|dis)able-tests//'); \
mkdir ../patched
rm -f 00list *.dpatch
for file in [0-9][0-9][0-9][0-9]-*.patch; do
- if ! grep -q "^--- a/debian/" $file; then
+ if [ -s $file ] && ! grep -q "^--- a/debian/" $file; then
desc=$(cat $file | sed -e '1,/^$/d' \
-e '/^---$/,$d')
dpatch_file=${file/.patch/.dpatch}