aboutsummaryrefslogtreecommitdiff
blob: ff958d67ff7f858d6c06391d743808675196db2d (plain)
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
#!/bin/bash

source ${clst_shdir}/support/functions.sh

# Only put commands in this section that you want every target to execute.
# This is a global default file and will affect every target
case $1 in
	enter)
		${clst_CHROOT} ${clst_chroot_path}
	;;

	run)
		shift
		export clst_packages="$*"
		exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
	;;

	update_stage)
		exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-updates.sh
	;;

	preclean)
		exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-preclean-chroot.sh
	;;

	clean)
		exit 0
	;;

	*)
		exit 1
	;;
esac
exit $?