]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
Fix the source manifest generation by using a simple shell script to scan the SRPMS...
authorDavid Scott <dave.scott@eu.citrix.com>
Mon, 12 Jul 2010 07:33:28 +0000 (08:33 +0100)
committerDavid Scott <dave.scott@eu.citrix.com>
Mon, 12 Jul 2010 07:33:28 +0000 (08:33 +0100)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
mk/Makefile

index 5c0129fb657540554c6204fff0dad3ef92f4f0e3..e0b9806f5e6a51ce32dda6b384cb7911bd97b5a9 100644 (file)
@@ -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