Skip to content

Commit

Permalink
Merge pull request #61 from scopatz/proj
Browse files Browse the repository at this point in the history
Another fix for finding the workdir
  • Loading branch information
gidden committed Mar 17, 2015
2 parents f16ffc4 + d5230da commit 95a708c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CYCA/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
`pwd`/CYCL/build.sh
PATH=$PATH:`pwd`/install/bin
UNAME=$(uname)
cycamore_tar_dir="cycamore-develop"
proj="cycamore"
anaconda/bin/conda list

# force cycamore to build with local cyclus
Expand All @@ -25,8 +25,8 @@ anaconda/bin/conda build --no-test cycamore
anaconda/bin/conda install --use-local cycamore=${versArray[1]}

# Setup workdir for later use
if [ -d "anaconda/conda-bld/work/${cycamore_tar_dir}" ]; then
export WORKDIR="anaconda/conda-bld/work/${cycamore_tar_dir}"
if [ -d "$(ls -d anaconda/conda-bld/work/*${proj}*/tests)" ]; then
export WORKDIR="$(ls -d anaconda/conda-bld/work/*${proj}*)"
else
export WORKDIR="anaconda/conda-bld/work"
fi
Expand Down
6 changes: 3 additions & 3 deletions CYCL/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ set -e
./bin/conda-inst.sh
export PATH="$(pwd)/anaconda/bin:${PATH}"
UNAME=$(uname)
cyclus_tar_dir="cyclus-develop"
proj="cyclus"

# Build Cyclus, must happen before we set the workdir
anaconda/bin/conda build --no-test cyclus

# Setup workdir for later use
if [ -d "anaconda/conda-bld/work/${cyclus_tar_dir}" ]; then
export WORKDIR="anaconda/conda-bld/work/${cyclus_tar_dir}"
if [ -d "$(ls -d anaconda/conda-bld/work/*${proj}*/tests)" ]; then
export WORKDIR="$(ls -d anaconda/conda-bld/work/*${proj}*)"
else
export WORKDIR="anaconda/conda-bld/work"
fi
Expand Down
6 changes: 3 additions & 3 deletions CYM/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
./bin/conda-inst.sh
export PATH="$(pwd)/anaconda/bin:${PATH}"
UNAME=$(uname)
cymetric_tar_dir="cymetric-master"
proj="cymetric"

# Build Cyclus, must happen before we set the workdir
anaconda/bin/conda install cyclus cycamore
Expand All @@ -21,8 +21,8 @@ cyclus --version
anaconda/bin/conda build --no-test cymetric

# Setup workdir for later use
if [ -d "anaconda/conda-bld/work/${cymetric_tar_dir}" ]; then
export WORKDIR="anaconda/conda-bld/work/${cymetric_tar_dir}"
if [ -d "$(ls -d anaconda/conda-bld/work/*${proj}*/tests)" ]; then
export WORKDIR="$(ls -d anaconda/conda-bld/work/*${proj}*)"
else
export WORKDIR="anaconda/conda-bld/work"
fi
Expand Down

0 comments on commit 95a708c

Please sign in to comment.