scmversion: Fix generation on Linux
This commit is contained in:
parent
a5585f047c
commit
2842167184
|
@ -3,7 +3,7 @@
|
||||||
VERSION_FILE="scmversion.cpp"
|
VERSION_FILE="scmversion.cpp"
|
||||||
|
|
||||||
CURDIR=$(pwd)
|
CURDIR=$(pwd)
|
||||||
if [ "$(uname -s)" == "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
cd "$(dirname $(python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0"))"
|
cd "$(dirname $(python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0"))"
|
||||||
else
|
else
|
||||||
cd $(dirname $(readlink -f $0))
|
cd $(dirname $(readlink -f $0))
|
||||||
|
|
Loading…
Reference in New Issue