aboutsummaryrefslogtreecommitdiffstats
path: root/meta-cgl-common/classes/cgl-calc.bbclass
blob: 81660d639df2c7ac11dfc6e37cc7aeeefb3a879b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
do_cgl_calc() {
	NO_COMPLY="NO"
	if [ -z "${CGL_ID}" ]; then
		echo "${NO_COMPLY}" > calculator.txt	
	else
		echo "${CGL_ID}" > calculator.txt
	fi
	if [ -z "${PRIORITY}" ]; then
		echo "${NO_COMPLY}" >> calculator.txt	
	else
		echo "${PRIORITY}" >> calculator.txt
	fi
	if [ -z "${DISCLOSURE}" ]; then
		echo "${NO_COMPLY}" >> calculator.txt	
	else
		echo "${DISCLOSURE}" >> calculator.txt
	fi
}

addtask cgl_calc after do_fetch before do_build