Changeset 2951
- Timestamp:
- 02/18/06 21:00:02 (3 years ago)
- Files:
-
- trunk/support/addSchemas.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/support/addSchemas.sh
r2832 r2951 1 1 #!/bin/bash 2 2 # probably not the nicest way of doing this, but it works... 3 3 4 PHP=`which php` 4 5 MYSQL=/opt/lampp/bin/mysql 5 6 DB=midgard 7 USER=root 6 8 PREFIX=/opt/lampp 7 MIDCOM_ROOT=/home/tarjei/ workspace/midcom/fs-midcom/lib9 MIDCOM_ROOT=/home/tarjei/midcomcvs/midcom/fs-midcom/lib 8 10 find $MIDCOM_ROOT -name "*.xml" > "./schemas.tmp" 9 11 cat ./schemas.tmp |grep -v 'package.xml' > "./schemas1.tmp" … … 14 16 do 15 17 echo "$MYSQL $DB < $sql" 16 $MYSQL $DB < $sql 18 $MYSQL -u$USER $DB < $sql 19 if [ $? != 0 ];then 20 echo "Error adding schmea $? !\n" 21 # exit 1 22 fi 23 17 24 done; 18 25 … … 32 39 33 40 XML="$XML \n</Schema>" 41 mkdir -p $PREFIX/share/midgard/schema 42 touch $PREFIX/share/midgard/schema/include.xml 43 34 44 echo -e $XML > $PREFIX/share/midgard/schema/include.xml 35 45 #if [ $? != 0 ];then
