Skip to content

Commit

Permalink
automatic detection of analysis-dev/ presence implemented [#18]
Browse files Browse the repository at this point in the history
if analysis-dev is present, it is used as the analysis
directory. otherwise the analysis folder out of the box
gets used.
  • Loading branch information
felix11h committed Apr 21, 2020
1 parent 76f2dcc commit 8638bb6
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,24 @@ TIMESTAMP=$(date +"%y%m%d_%H%M%S")$POSTFIX;

mkdir -p ../running/$TIMESTAMP

#rsync -a --exclude='*~' --exclude='.git' \
rsync -a --exclude='*~' --exclude='analysis/' \
$CODEDIR/ ../running/$TIMESTAMP/src/
if [[ -d ../analysis-dev/ ]]
then
echo "Note: analysis-dev/ directory found."
echo "Replacing analysis/ with analysis-dev/ in output folder."

rsync -a --exclude='*~' --exclude='analysis/' \
$CODEDIR/ ../tests/testing/$WDIR/src/

rsync -a --delete --exclude='*~' --exclude='__pycache__' \
$CODEDIR/../analysis-dev/ ../tests/testing/$WDIR/src/analysis

rsync -a --delete --exclude='*~' --exclude='__pycache__' \
$CODEDIR/../analysis-dev/ ../running/$TIMESTAMP/src/analysis
else
echo "Note: analysis-dev/ directory not found."
echo "Proceeding without replacment."

rsync -a --exclude='*~' \
$CODEDIR/ ../tests/testing/$WDIR/src/
fi

cd ../running/$TIMESTAMP

Expand Down

0 comments on commit 8638bb6

Please sign in to comment.