File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ info() { echo "INFO [$(basename $0)]: $@"; }
8
8
[[ -z " $DEBUG " ]] || set -x
9
9
10
10
GIT_DEPTH=1
11
+ APP=${1}
12
+ [[ -n " $APP " ]] || APP=" core"
11
13
12
- RELEASE=" ${RELEASE:- debian/ $(lsb_release -s -c)} "
13
- CODENAME=" $( basename $RELEASE ) "
14
- ARCH=" ${ARCH:- $(dpkg --print-architecture)} "
14
+ distro=" $( lsb_release -si | tr ' [:upper:]' ' [:lower:]' ) "
15
+ [[ " $distro " == " turnkey" ]] && distro=" debian"
16
+
17
+ export RELEASE=" ${RELEASE:- ${distro} / $(lsb_release -s -c)} "
18
+ export CODENAME=" $( basename $RELEASE ) "
19
+ export ARCH=" ${ARCH:- $(dpkg --print-architecture)} "
15
20
16
21
IMAGES=" http://mirror.turnkeylinux.org/turnkeylinux/images"
17
22
FAB_PATH=" /turnkey/fab"
@@ -45,7 +50,7 @@ clone_or_update turnkeylinux/buildtasks $BT_PATH
45
50
clone_or_update turnkeylinux/tklbam-profiles /turnkey/tklbam-profiles
46
51
clone_or_update turnkeylinux/cdroots $FAB_PATH /cdroots
47
52
clone_or_update turnkeylinux/common $FAB_PATH /common
48
- clone_or_update turnkeylinux-apps/core $FAB_PATH /products/core
53
+ clone_or_update turnkeylinux-apps/$APP $FAB_PATH /products/$APP
49
54
50
55
if [[ -f " $BT_PATH /config/common.cfg" ]]; then
51
56
. $BT_PATH /config/common.cfg
You can’t perform that action at this time.
0 commit comments