-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from JeffersonLab/complete_system_build_MMI
Complete system build mmi
- Loading branch information
Showing
7 changed files
with
72 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*~ | ||
*.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
function create_script { | ||
gt=`echo $gluex_top | sed -e 's./.\\\\/.g'` | ||
sed -e "s/<gluex-top>/${gt}/" < $gi_path/$name.template > $1 | ||
} | ||
|
||
gi_path=$1 | ||
gluex_top=$2 | ||
for name in gluex_env_boot.sh gluex_env_boot.csh gluex_env_local.sh gluex_env_local.csh; do | ||
echo creating script $name | ||
create_script $name | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
setenv BUILD_SCRIPTS <gluex-top>/build_scripts | ||
set build_scripts_this=$BUILD_SCRIPTS | ||
alias gxenv "source $build_scripts_this/gluex_env_clean.csh; setenv BUILD_SCRIPTS $build_scripts_this; source <gluex-top>/gluex_env_local.csh \!*" | ||
alias gxclean "source $build_scripts_this/gluex_env_clean.csh" | ||
echo $PATH | grep $build_scripts_this > /dev/null | ||
if ($status) setenv PATH ${build_scripts_this}:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export BUILD_SCRIPTS=<gluex-top>/build_scripts | ||
build_scripts_this=$BUILD_SCRIPTS | ||
function gxenv() { source $build_scripts_this/gluex_env_clean.sh; \ | ||
export BUILD_SCRIPTS=$build_scripts_this; \ | ||
source <gluex-top>/gluex_env_local.sh $1; \ | ||
} | ||
function gxclean() { source $build_scripts_this/gluex_env_clean.sh; } | ||
if [ `echo $PATH | grep -c $build_scripts_this` -eq 0 ] | ||
then export PATH=$build_scripts_this:$PATH | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
setenv GLUEX_TOP <gluex-top> | ||
if (! $?BUILD_SCRIPTS) setenv BUILD_SCRIPTS $GLUEX_TOP/build_scripts | ||
setenv HALLD_VERSIONS $GLUEX_TOP/halld_versions | ||
source $BUILD_SCRIPTS/gluex_env_version.csh $HALLD_VERSIONS/version_jlab.xml | ||
setenv CCDB_CONNECTION mysql://ccdb_user@hallddb.jlab.org/ccdb | ||
setenv JANA_CALIB_URL $CCDB_CONNECTION | ||
setenv JANA_RESOURCE_DIR $GLUEX_TOP/resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export GLUEX_TOP=<gluex-top> | ||
if [ -z "$BUILD_SCRIPTS" ] | ||
then export BUILD_SCRIPTS=$GLUEX_TOP/build_scripts | ||
fi | ||
export HALLD_VERSIONS=$GLUEX_TOP/halld_versions | ||
source $BUILD_SCRIPTS/gluex_env_version.sh $HALLD_VERSIONS/version_jlab.xml | ||
export CCDB_CONNECTION=mysql://ccdb_user@hallddb.jlab.org/ccdb | ||
export JANA_CALIB_URL=$CCDB_CONNECTION | ||
export JANA_RESOURCE_DIR=$GLUEX_TOP/resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters