From: David Scott Date: Mon, 12 Jul 2010 07:33:28 +0000 (+0100) Subject: Fix the source manifest generation by using a simple shell script to scan the SRPMS... X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d26be441029cca9af87f35610bd81139b16ba6af;p=xcp%2Fxen-api-libs.git Fix the source manifest generation by using a simple shell script to scan the SRPMS, rather than a hideous make/shell fragment. Signed-off-by: David Scott --- diff --git a/mk/Makefile b/mk/Makefile index 5c0129f..e0b9806 100644 --- a/mk/Makefile +++ b/mk/Makefile @@ -26,10 +26,7 @@ srpm: $(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP) rm -f $@ - @for srpm in "$(/bin/ls -1 ${MY_OUTPUT_DIR}/SRPMS)"; do \ - path=$(MY_OUTPUT_DIR)/SRPMS/${srpm}; \ - echo "$(${RPM} --qf "%{name}" -qp ${path}) $(${RPM} --qf "%{License}" -qp ${path}) ${path}" >>$@; \ - done + /bin/sh ./srpms-to-manifest api-libs $(MY_OUTPUT_DIR)/SRPMS > $@ .PHONY: clean rm -f *.rpm