fix linux build script for build always in the same directory

This commit is contained in:
alemuntoni 2020-10-14 14:02:26 +02:00
parent 1a9ae1f0d8
commit 025d3ec577
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -18,6 +18,7 @@
*.AppImage
.DS_Store
distrib*
src/install/*
install/macos/resources/meshlab_dmg_final.json
install/windows/resources/meshlab_final.nsi
install/windows/resources/MeshLab*.exe

View File

@ -45,12 +45,12 @@ then
mkdir -p $INSTALL_PATH
fi
BUILD_PATH=$(realpath $BUILD_PATH)
INSTALL_PATH=$(realpath $INSTALL_PATH)
#move to script directory
cd "$(dirname "$(realpath "$0")")";
BUILD_PATH=$(realpath $BUILD_PATH)
INSTALL_PATH=$(realpath $INSTALL_PATH)
#source path wrt script path
SOURCE_PATH=$PWD/../../src