Skip to content
Snippets Groups Projects
install_support.sh 585 B
Newer Older
#!/bin/sh

DM_SVN_URL=https://subversion.xray.aps.anl.gov/DataManagement

MY_DIR=`dirname $0` && cd $MY_DIR && MY_DIR=`pwd`
if [ -z "${DM_ROOT_DIR}" ]; then
    DM_ROOT_DIR=$MY_DIR/..
fi
sveseli's avatar
sveseli committed
DM_SUPPORT_DIR=$DM_ROOT_DIR/../support

execute() {
    echo "Executing: $@"
    eval "$@"
}

sveseli's avatar
sveseli committed
if [ ! -d $DM_SUPPORT_DIR ]; then
    echo "Creating new DM support directory $DM_SUPPORT_DIR."
    cd `dirname $DM_SUPPORT_DIR`
    execute svn co $DM_SVN_URL/support support
fi
sveseli's avatar
sveseli committed
cd $DM_SUPPORT_DIR
execute svn update
sveseli's avatar
sveseli committed
execute $DM_SUPPORT_DIR/bin/clean_all.sh
execute $DM_SUPPORT_DIR/bin/install_all.sh