directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r379110 - /directory/trunks/resources/generate_modules_index_xdoc.sh
Date Mon, 20 Feb 2006 11:59:57 GMT
Author: ersiner
Date: Mon Feb 20 03:59:50 2006
New Revision: 379110

URL: http://svn.apache.org/viewcvs?rev=379110&view=rev
Log:
Updated module index generation script.

Modified:
    directory/trunks/resources/generate_modules_index_xdoc.sh

Modified: directory/trunks/resources/generate_modules_index_xdoc.sh
URL: http://svn.apache.org/viewcvs/directory/trunks/resources/generate_modules_index_xdoc.sh?rev=379110&r1=379109&r2=379110&view=diff
==============================================================================
--- directory/trunks/resources/generate_modules_index_xdoc.sh (original)
+++ directory/trunks/resources/generate_modules_index_xdoc.sh Mon Feb 20 03:59:50 2006
@@ -1,15 +1,13 @@
 #!/bin/sh
 
-# One of the ugliest hacks you can find around!
-#
-# This script finds all subprojects by looking at pom.xmls starting from
+# This script finds all modules by looking at pom.xmls starting from
 # where it's invoked and generates an index page with a table of project
 # names and descriptions. The generated document is a complete xdoc doc.
 # If there is no name element in project then it takes the artifactId.
 # If there is no description element in the project then it prints
 # "To be described...".
 
-poms=$(for pom in $(find . -name "pom.xml" | sed "s/^\.\/pom.xml$//"); do echo "${pom}";
done)
+modules=$(pommodules.sh ./pom.xml)
 
 project_name=$(pomname.sh ./pom.xml)
 if [ "$project_name" == "" ]
@@ -29,9 +27,9 @@
 echo '   <table>'
 echo '    <tr><th>Name</th><th>Description</th></tr>'
 
-for pom in $poms
+for module in $modules
 do
-	#project_dir=$(echo $pom | sed 's/\.\/\(.*\)\/pom\.xml/\1/')
+	pom=$module/pom.xml
 	
 	project_name=$(pomname.sh $pom)
 	



Mime
View raw message