Changeset 2951

Show
Ignore:
Timestamp:
02/18/06 21:00:02 (3 years ago)
Author:
tarjei
Message:

Changed to fit more with the testbuilder

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/support/addSchemas.sh

    r2832 r2951  
    11#!/bin/bash 
    22# probably not the nicest way of doing this, but it works... 
     3 
    34PHP=`which php` 
    45MYSQL=/opt/lampp/bin/mysql 
    56DB=midgard 
     7USER=root 
    68PREFIX=/opt/lampp 
    7 MIDCOM_ROOT=/home/tarjei/workspace/midcom/fs-midcom/lib 
     9MIDCOM_ROOT=/home/tarjei/midcomcvs/midcom/fs-midcom/lib 
    810find $MIDCOM_ROOT -name "*.xml" > "./schemas.tmp" 
    911cat ./schemas.tmp |grep -v 'package.xml' > "./schemas1.tmp" 
     
    1416do 
    1517    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 
    1724done; 
    1825 
     
    3239 
    3340XML="$XML \n</Schema>" 
     41mkdir -p $PREFIX/share/midgard/schema 
     42touch $PREFIX/share/midgard/schema/include.xml 
     43 
    3444echo -e $XML > $PREFIX/share/midgard/schema/include.xml  
    3545#if [ $? != 0 ];then