using realpath on linux scripts

This commit is contained in:
alemuntoni 2020-06-16 12:46:11 +02:00
parent e564f214da
commit d61e693ecd
6 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
else
DISTRIB_PATH=$1
DISTRIB_PATH=$(realpath $1)
fi
cd $DISTRIB_PATH

View File

@ -16,7 +16,7 @@ if [ "$#" -eq 0 ]
then
BUILD_PATH="../../src"
else
BUILD_PATH=$1
BUILD_PATH=$(realpath $1)
fi
if ! [ -d $BUILD_PATH ]

View File

@ -16,7 +16,7 @@ if [ "$#" -eq 0 ]
then
BUILD_PATH="../../src"
else
BUILD_PATH=$1
BUILD_PATH=$(realpath $1)
fi
if ! [ -d $BUILD_PATH ]

View File

@ -17,7 +17,7 @@ if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
else
DISTRIB_PATH=$1
DISTRIB_PATH=$(realpath $1)
fi
cd $DISTRIB_PATH

View File

@ -14,7 +14,7 @@ if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
else
DISTRIB_PATH=$1
DISTRIB_PATH=$(realpath $1)
fi
SOURCE_PATH=$PWD/../../src
@ -65,4 +65,4 @@ rm -r lib
mv usr/lib/meshlab/libIFX* .
mv libIFXCoreStatic.a usr/lib/meshlab
chrpath -r '$ORIGIN/../lib/meshlab/' usr/bin/meshlab
chrpath -r '$ORIGIN/../lib/meshlab/' usr/bin/meshlabserver
chrpath -r '$ORIGIN/../lib/meshlab/' usr/bin/meshlabserver

View File

@ -20,7 +20,7 @@ if [ "$#" -eq 0 ]
then
BUILD_PATH="../../src"
else
BUILD_PATH=$1
BUILD_PATH=$(realpath $1)
fi
sh linux_build.sh $BUILD_PATH