-
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 #19 from JeffersonLab/two-part_gluex_install
Do the install in two parts so that custom gluex_top can be set-up be…
- Loading branch information
Showing
3 changed files
with
56 additions
and
35 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,20 @@ | ||
#!/bin/bash | ||
# GI_PATH is the fully qualified directory that contains this script | ||
gi_script="${BASH_SOURCE[0]}"; | ||
if([ -h "${gi_script}" ]) then | ||
while([ -h "${gi_script}" ]) do gi_script=`readlink "${gi_script}"`; done | ||
fi | ||
pushd . > /dev/null | ||
cd `dirname ${gi_script}` > /dev/null | ||
GI_PATH=`pwd` | ||
popd > /dev/null | ||
source gluex_env_boot.sh | ||
gxenv | ||
make -f $BUILD_SCRIPTS/Makefile_all gluex_pass1 | ||
if [ $? -ne 0 ] | ||
then | ||
echo pass 1 failed, exiting | ||
exit 1 | ||
fi | ||
gxenv | ||
make -f $BUILD_SCRIPTS/Makefile_all gluex_pass2 |
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,33 @@ | ||
#!/bin/bash | ||
# GI_PATH is the fully qualified directory that contains this script | ||
gi_script="${BASH_SOURCE[0]}"; | ||
if([ -h "${gi_script}" ]) then | ||
while([ -h "${gi_script}" ]) do gi_script=`readlink "${gi_script}"`; done | ||
fi | ||
pushd . > /dev/null | ||
cd `dirname ${gi_script}` > /dev/null | ||
GI_PATH=`pwd` | ||
popd > /dev/null | ||
# | ||
mkdir -p gluex_top | ||
pushd gluex_top | ||
pwd_string=`pwd` | ||
mkdir -p resources | ||
if [ -e build_scripts ] | ||
then | ||
echo build_scripts already here, skip installation | ||
else | ||
echo cloning build_scripts repository | ||
git clone https://github.com/jeffersonlab/build_scripts | ||
pushd build_scripts | ||
./update_to_latest.sh | ||
popd | ||
fi | ||
if [ -e halld_versions ] | ||
then | ||
echo halld_versions already here, skip installation | ||
else | ||
echo cloning halld_versions repository | ||
git clone https://github.com/jeffersonlab/halld_versions | ||
fi | ||
$GI_PATH/create_setup_scripts.sh $pwd_string |
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