Add ability to set custom build dir
This commit is contained in:
@@ -7,6 +7,9 @@ Before first build install dependencies run `./install-dependencies.sh` to insta
|
|||||||
This need to be run only once.
|
This need to be run only once.
|
||||||
Then run `./build-soft-stable.sh` or `./build-soft-latest.sh`
|
Then run `./build-soft-stable.sh` or `./build-soft-latest.sh`
|
||||||
|
|
||||||
|
By default it clone sources to $HOME/astro-soft or $HOME/astro-soft-stable directory. You can change that by setting
|
||||||
|
BUILD_DIR variable before. For example `BUILD_DIR="/home/username/I want to build here" ./build-soft-stable.sh`
|
||||||
|
|
||||||
Stable install last stable version and it is recomended to use. Latest will build bleeding edge version from repository
|
Stable install last stable version and it is recomended to use. Latest will build bleeding edge version from repository
|
||||||
which sometimes can fail to build or can be unstable.
|
which sometimes can fail to build or can be unstable.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ export CFLAGS="-march=native -w -Wno-psabi -D_FILE_OFFSET_BITS=64"
|
|||||||
export CXXFLAGS="-march=native -w -Wno-psabi -D_FILE_OFFSET_BITS=64"
|
export CXXFLAGS="-march=native -w -Wno-psabi -D_FILE_OFFSET_BITS=64"
|
||||||
|
|
||||||
CHECKOUT=0
|
CHECKOUT=0
|
||||||
ROOTDIR="$HOME/astro-soft"
|
# you can set custom BUILD_DIR
|
||||||
|
BUILD_DIR=${BUILD_DIR:-$HOME}
|
||||||
|
ROOTDIR="$BUILD_DIR/astro-soft"
|
||||||
|
|
||||||
JOBS=$(grep -c ^processor /proc/cpuinfo)
|
JOBS=$(grep -c ^processor /proc/cpuinfo)
|
||||||
# 64 bit systems need more memory for compilation
|
# 64 bit systems need more memory for compilation
|
||||||
@@ -14,7 +16,7 @@ then
|
|||||||
JOBS=2
|
JOBS=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -d "$ROOTDIR" ] && mkdir $ROOTDIR
|
[ ! -d "$ROOTDIR" ] && mkdir -p "$ROOTDIR"
|
||||||
cd "$ROOTDIR"
|
cd "$ROOTDIR"
|
||||||
|
|
||||||
[ ! -d "libXISF" ] && git clone https://gitea.nouspiro.space/nou/libXISF.git
|
[ ! -d "libXISF" ] && git clone https://gitea.nouspiro.space/nou/libXISF.git
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ INDI_3RD_COMMIT="v2.0.6"
|
|||||||
STELLAR_COMMIT="e415e51d99224f239c24634519c030ef60969723"
|
STELLAR_COMMIT="e415e51d99224f239c24634519c030ef60969723"
|
||||||
KSTARS_COMMIT="origin/stable-3.6.9"
|
KSTARS_COMMIT="origin/stable-3.6.9"
|
||||||
|
|
||||||
ROOTDIR="$HOME/astro-soft-stable"
|
# you can set custom BUILD_DIR
|
||||||
|
BUILD_DIR=${BUILD_DIR:-$HOME}
|
||||||
|
ROOTDIR="$BUILD_DIR/astro-soft-stable"
|
||||||
|
|
||||||
JOBS=$(grep -c ^processor /proc/cpuinfo)
|
JOBS=$(grep -c ^processor /proc/cpuinfo)
|
||||||
|
|
||||||
@@ -20,7 +22,7 @@ then
|
|||||||
JOBS=2
|
JOBS=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -d "$ROOTDIR" ] && mkdir $ROOTDIR
|
[ ! -d "$ROOTDIR" ] && mkdir -p "$ROOTDIR"
|
||||||
cd "$ROOTDIR"
|
cd "$ROOTDIR"
|
||||||
|
|
||||||
[ ! -d "libXISF" ] && git clone https://gitea.nouspiro.space/nou/libXISF.git
|
[ ! -d "libXISF" ] && git clone https://gitea.nouspiro.space/nou/libXISF.git
|
||||||
|
|||||||
Reference in New Issue
Block a user