forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade.sh
32 lines (26 loc) · 1.59 KB
/
upgrade.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
# Copyright (c) 2015-2017 Igor Pecovnik, igor.pecovnik@gma**.com
# Copyright (c) 2015-2017 other Armbian contributors (https://github.com/armbian/build/graphs/contributors)
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
#
# This file is part of the Armbian build script https://github.com/armbian/build/
# Show info messages about changed directory structure
# when updating from older build script versions
TTY_X=$(($(stty size | awk '{print $2}')-6)) # determine terminal width
TTY_Y=$(($(stty size | awk '{print $1}')-6)) # determine terminal height
if [[ $(basename $0) == main.sh ]]; then
echo "Please use compile.sh to start the build process"
exit -1
fi
if [[ $(basename $0) == compile.sh ]]; then
# assuming dialog was installed already since this is supposed to be shown only on upgrade from previous versions
dialog --title "Directory structure change notice" --colors --msgbox "Build script directory structure was changed to simplify the build environment setup, \
simplify upgrading in the future and improve compatibility with containers like Docker and Vagrant
To upgrade please clone the repository \Z4https://github.com/armbian/build/\Zn into an empty directory and launch \Z2compile.sh\Zn
Copying and editing compile.sh is not required, build configuration is defined in \Z1config-*.conf\Zn files
Default build configuration is defined in \Z1config-default.conf\Zn (created on first build script run)
Sorry for the inconvenience" $TTY_Y $TTY_X
exit -1
fi