install_external.sh 531 Bytes
Newer Older
1 2 3 4 5 6
#Helper to install external library
#1. creates a external directory in the build location
#2. copies the external/XXX directory for library XXX from source to build
#3. starts the install_XXX.sh script in buildname/external to do the work ....

function compile_external(){
7
    echo "Installing $library"  
8 9 10 11 12 13 14 15 16 17 18 19 20 21
    if [ ! -r external ]
    then
	mkdir external
    fi
    
    cp -r $DIR/external/$library external

    here=$PWD
    
    cd external/$library
    
    . install_${library}.sh

    cd $here
22
    echo "$library done"
23
}