scmversion: Fix generation on Linux
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user