]> xenbits.xensource.com Git - xcp/xen-api.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:32:58 +0000 (08:32 +0100)
committerDavid Scott <dave.scott@eu.citrix.com>
Mon, 12 Jul 2010 07:32:58 +0000 (08:32 +0100)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
mk/Makefile

index 3e1e0c5f563b96ed132cd394144f1309d37e512b..414bd26e8ce3168290f4bab3f2257bb15bf55e2f 100644 (file)
@@ -38,10 +38,7 @@ build: $(OUTPUT_CLI_RT) $(OUTPUT_SDK) $(MY_SOURCES)/MANIFEST
 
 $(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP) $(OUTPUT_XAPI_SRC)
        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 $(MY_OUTPUT_DIR)/SRPMS > $@
        echo api gpl file $(JQUERY_PACK_DIST) >> $@
        echo api gpl file $(JQUERY_TV_DIST) >> $@