fixing linux scripts

This commit is contained in:
alemuntoni 2020-06-16 13:14:12 +02:00
parent 90a504b71d
commit 0f1406da7d
6 changed files with 17 additions and 17 deletions

View File

@ -11,17 +11,17 @@
#
# You can give as argument the DISTRIB_PATH.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
INSTALL_PATH=$(pwd)
#checking for parameters
if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
DISTRIB_PATH="../../distrib"
else
DISTRIB_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
INSTALL_PATH=$(pwd)
cd $DISTRIB_PATH
export VERSION=$(cat $INSTALL_PATH/../../ML_VERSION)

View File

@ -9,8 +9,6 @@
# You can give as argument the BUILD_PATH, and meshlab binaries will be
# then placed inside BUILD_PATH/distrib.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
#checking for parameters
if [ "$#" -eq 0 ]
then
@ -19,6 +17,8 @@ else
BUILD_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
if ! [ -d $BUILD_PATH ]
then
mkdir $BUILD_PATH

View File

@ -9,8 +9,6 @@
# You can give as argument the BUILD_PATH, and meshlab binaries will be
# then placed inside BUILD_PATH/distrib.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
#checking for parameters
if [ "$#" -eq 0 ]
then
@ -19,6 +17,8 @@ else
BUILD_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
if ! [ -d $BUILD_PATH ]
then
mkdir $BUILD_PATH

View File

@ -9,17 +9,17 @@
#
# You can give as argument the DISTRIB_PATH.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
INSTALL_PATH=$(pwd)
#checking for parameters
if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
DISTRIB_PATH="../../distrib"
else
DISTRIB_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
INSTALL_PATH=$(pwd)
cd $DISTRIB_PATH
$INSTALL_PATH/resources/linuxdeployqt usr/share/applications/meshlab.desktop -bundle-non-qt-libs -executable=usr/bin/meshlabserver

View File

@ -7,16 +7,16 @@
#
# You can give as argument the DISTRIB_PATH.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
#checking for parameters
if [ "$#" -eq 0 ]
then
DISTRIB_PATH=$PWD/../../distrib
DISTRIB_PATH="../../distrib"
else
DISTRIB_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
SOURCE_PATH=$PWD/../../src
INSTALL_PATH=$(pwd)

View File

@ -13,8 +13,6 @@
# You can give as argument the BUILD_PATH, and meshlab binaries and
# AppImage will be then placed inside BUILD_PATH/distrib.
cd "$(dirname "$(realpath "$0")")"; #move to script directory
#checking for parameters
if [ "$#" -eq 0 ]
then
@ -23,5 +21,7 @@ else
BUILD_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
sh linux_build.sh $BUILD_PATH
sh linux_appimages.sh $BUILD_PATH/distrib