File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ info() { echo "INFO [$(basename $0)]: $@"; }
88[[ -z " $DEBUG " ]] || set -x
99
1010GIT_DEPTH=1
11+ APP=${1}
12+ [[ -n " $APP " ]] || APP=" core"
1113
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)} "
1520
1621IMAGES=" http://mirror.turnkeylinux.org/turnkeylinux/images"
1722FAB_PATH=" /turnkey/fab"
@@ -45,7 +50,7 @@ clone_or_update turnkeylinux/buildtasks $BT_PATH
4550clone_or_update turnkeylinux/tklbam-profiles /turnkey/tklbam-profiles
4651clone_or_update turnkeylinux/cdroots $FAB_PATH /cdroots
4752clone_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
4954
5055if [[ -f " $BT_PATH /config/common.cfg" ]]; then
5156 . $BT_PATH /config/common.cfg
You can’t perform that action at this time.
0 commit comments