Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 31669 invoked from network); 6 Oct 2004 08:03:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Oct 2004 08:03:32 -0000 Received: (qmail 77886 invoked by uid 500); 6 Oct 2004 08:03:31 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 77871 invoked by uid 500); 6 Oct 2004 08:03:31 -0000 Delivered-To: apmail-gump-cvs@apache.org Received: (qmail 77866 invoked by uid 99); 6 Oct 2004 08:03:31 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 06 Oct 2004 01:03:31 -0700 Received: (qmail 31314 invoked by uid 1010); 6 Oct 2004 08:02:52 -0000 Date: 6 Oct 2004 08:02:52 -0000 Message-ID: <20041006080252.31311.qmail@minotaur.apache.org> From: stefano@apache.org To: gump-cvs@apache.org Subject: cvs commit: gump/tools externals.xslt X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stefano 2004/10/06 01:02:52 Modified: . validate dtd project.dtd profile gump.xml Added: project jakarta-commons-sandbox-grant.xml jakarta-commons-sandbox-vfs.xml tools externals.xslt Log: added the ability to validate the external metadata as well. forrest is the only ASF dataset that doesn't validate (has a lot of non-standard descriptive tags that are just not useful for gump today). the other three don't validate because of a limitation of the validation script (since they don't start with an XML declaration) I'll think about something smarter than 'sed' to apply the DOCTYPE on the fly tomorrow Revision Changes Path 1.2 +9 -1 gump/validate Index: validate =================================================================== RCS file: /home/cvs/gump/validate,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- validate 6 Oct 2004 07:06:19 -0000 1.1 +++ validate 6 Oct 2004 08:02:52 -0000 1.2 @@ -20,7 +20,7 @@ xmllint --valid --noout ./tmp/$file done -echo " ======== Processing Projects ============ " +echo " ======== Processing Local Projects ============ " if [ ! -f ./tmp/project ] ; then mkdir -p tmp/project fi @@ -28,6 +28,14 @@ sed -e '2i\ ' < $file > ./tmp/$file ; xmllint --valid --noout ./tmp/$file +done + +echo " ======== Processing External Projects ============ " +for file in `xsltproc ./tools/externals.xslt ./profile/gump.xml | sed -e '1d'`; do + echo "fetching $file..." + curl -s $file | sed -e '2i\ +' > ./tmp/project/`basename $file` + xmllint --valid --noout ./tmp/project/`basename $file` done rm -rf tmp 1.6 +4 -2 gump/dtd/project.dtd Index: project.dtd =================================================================== RCS file: /home/cvs/gump/dtd/project.dtd,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- project.dtd 6 Oct 2004 07:06:20 -0000 1.5 +++ project.dtd 6 Oct 2004 08:02:52 -0000 1.6 @@ -37,7 +37,8 @@ + language CDATA #IMPLIED + status CDATA #IMPLIED > + runtime CDATA #IMPLIED + type CDATA #IMPLIED > - - + + @@ -104,7 +104,6 @@ - @@ -177,7 +176,6 @@ - @@ -219,8 +217,8 @@ - - + + 1.1 gump/project/jakarta-commons-sandbox-grant.xml Index: jakarta-commons-sandbox-grant.xml =================================================================== Commons Grant org.apache.commons.grant 1.1 gump/project/jakarta-commons-sandbox-vfs.xml Index: jakarta-commons-sandbox-vfs.xml =================================================================== Commons VFS org.apache.commons.vfs 1.1 gump/tools/externals.xslt Index: externals.xslt ===================================================================