From: <ssk...@re...> - 2004-11-11 19:01:03
|
Author: sskracic Date: 2004-11-11 19:53:41 +0100 (Thu, 11 Nov 2004) New Revision: 94 Modified: tools/trunk/misc/build-all.sh Log: Vastly improved way of autogenerating the project.xml, which now takes <prebuilt> section right out from the <dependencies> section of application.xml. Modified: tools/trunk/misc/build-all.sh =================================================================== --- tools/trunk/misc/build-all.sh 2004-11-11 18:14:35 UTC (rev 93) +++ tools/trunk/misc/build-all.sh 2004-11-11 18:53:41 UTC (rev 94) @@ -301,10 +301,13 @@ ( set -e cd $i - # generate skeleton project.xml - # But! We must list all installed WAF RPMs in - # <prebuilt> section of project.xml, otherwise - # no build.xml will be generated. + # Generate skeleton project.xml. + # We will cheat and simply copy the <ccm:dependencies> + # from application.xml into <ccm:prebuilt> block of + # project.xml. By doing this we will satisfy + # the dependency information needed to perform XSL + # transformation when creating the build.xml. + appxml=$(cat $i/application.xml) cat > project.xml <<EOF <?xml version="1.0" encoding="ISO-8859-1"?> @@ -319,7 +322,7 @@ </ccm:build> <ccm:prebuilt> -$($RPM $RPM_ARGS -qa --qf "<ccm:application name=\"%{NAME}\" version=\"%{VERSION}\"/>\n" 'ccm*') +$(sed -n '/<ccm:dependencies>/,/<\/ccm:dependencies>/s/requires/application/p' < $CCM_APP/application.xml) </ccm:prebuilt> </ccm:project> |