-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-env.sh
executable file
·63 lines (53 loc) · 2.32 KB
/
build-env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/zsh
# This file will make it easier to use the scripts and do stuff on command line
#
function statusBanner
{
echo -n -e "\033]0;$*\007"
echo ""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~ $*"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo ""
}
function announce
{
[ -n "$ANNOUNCE" ] && say -v Daniel "$*"
statusBanner "$*"
}
# This sets the DIR variable to the current path of the scripts.
export DIR=$(dirname "$0")
# This sets the directory paths. Note that these are customizable.
# Beware that none of them should have spaces in the file path.
#This is the base path
export ASTRO_ROOT=~/AstroRoot
#This is the path to the INDI directory for your personal editing work
export INDI_DIR="${ASTRO_ROOT}"/indi-work
#This is the path to your personal fork of the INDI repository
export FORKED_INDI_REPO="[email protected]:rlancaste/indi.git"
#This is the path to your personal fork of the INDI 3rd Party repository
export FORKED_INDI_3RDPARTY_REPO="[email protected]:rlancaste/indi-3rdparty.git"
#This is the location of the craft root directory
export CRAFT_DIR="${ASTRO_ROOT}"/craft-root
#This is the location of the craft shortcuts directory
export SHORTCUTS_DIR="${ASTRO_ROOT}"/craft-shortcuts
#This is the path to your KStars XCode Build Directory
export KSTARS_XCODE_DIR="${ASTRO_ROOT}/kstars-xcode"
# This sets the minimum OS X version you are compiling for
# Note that the current version of qt can no longer build for anything less than 10.12
export QMAKE_MACOSX_DEPLOYMENT_TARGET=10.15
export MACOSX_DEPLOYMENT_TARGET=10.15
# This sets the current version numbers that will be used throughout the script.
export KSTARS_VERSION=3.6.9
export INDI_WEB_MANAGER_APP_VERSION=1.8
echo "DIR is [${DIR}]"
echo "ASTRO_ROOT is [${ASTRO_ROOT}]"
echo "INDI_DIR is [${INDI_DIR}]"
echo "FORKED_INDI_REPO is [${FORKED_INDI_REPO}]"
echo "FORKED_INDI_3RDPARTY_REPO is [${FORKED_INDI_3RDPARTY_REPO}]"
echo "CRAFT_DIR is [${CRAFT_DIR}]"
echo "SHORTCUTS_DIR is [${SHORTCUTS_DIR}]"
echo "PATH is [${PATH}]"
echo "OSX Deployment target is [${QMAKE_MACOSX_DEPLOYMENT_TARGET}]"
echo "KStars Version is [${KSTARS_VERSION}]"
echo "INDI_WEB_MANAGER_VERSION is [${INDI_WEB_MANAGER_APP_VERSION}]"