#!/bin/sh echo " ======== Processing Repositories ============ " if [ ! -f ./tmp/repository ] ; then mkdir -p tmp/repository fi for file in `ls ./repository/*.xml`; do sed -e '2i\ ' < $file > ./tmp/$file ; xmllint --valid --noout ./tmp/$file done echo " ======== Processing Profiles ============ " if [ ! -f ./tmp/profile ] ; then mkdir -p tmp/profile fi for file in `ls ./profile/*.xml`; do sed -e '2i\ ' < $file > ./tmp/$file ; xmllint --valid --noout ./tmp/$file done echo " ======== Processing Local Projects ============ " if [ ! -f ./tmp/project ] ; then mkdir -p tmp/project fi for file in `ls ./project/*.xml`; do 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