diff options
| author | tgrogers <[email protected]> | 2018-04-11 15:46:01 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2018-04-11 15:46:01 -0400 |
| commit | 89094df5b4e861b104393ea0f41886494a7f26a4 (patch) | |
| tree | d5107199f935391aead8e2415db8931c9fe91805 /setup_environment | |
| parent | 35eb8dfa699df3bd5526d8d659ffd754d54880cc (diff) | |
This build status line was broken when there were cached files
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup_environment b/setup_environment index 96cc362..3f2476e 100644 --- a/setup_environment +++ b/setup_environment @@ -8,7 +8,8 @@ export GPGPUSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" GPGPUSIM_VERSION_STRING=`cat $GPGPUSIM_ROOT/version | awk '/Version/ {print $8}'` #Detect Git branch and commit # GIT_COMMIT=`git log -n 1 | head -1 | sed -re 's/commit (.*)/\1/'` -GIT_FILES_CHANGED=`git diff --numstat --cached && git diff --numstat | wc | sed -re 's/^\s+([0-9]+).*/\1/'` +GIT_FILES_CHANGED=`git diff --numstat | wc | sed -re 's/^\s+([0-9]+).*/\1./'` +GIT_FILES_CHANGED+=`git diff --numstat --cached | wc | sed -re 's/^\s+([0-9]+).*/\1/'` GPGPUSIM_BUILD_STRING="gpgpu-sim_git-commit-$GIT_COMMIT-modified_$GIT_FILES_CHANGED" echo -n "GPGPU-Sim version $GPGPUSIM_VERSION_STRING (build $GPGPUSIM_BUILD_STRING) "; |
