summaryrefslogtreecommitdiff
path: root/cmake/PreInstall.sh
blob: b944fc8424ada0c74a1cfee4eb621e4dce78ea7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DST=${RPM_INSTALL_PREFIX}

mkdir -p ${DST}/plug/platform/
mkdir -p ${DST}/etc/
touch ${DST}/plug/conflist.inf
touch ${DST}/etc/project_list.conf

if [[ -z `grep -rn 'POLICY_PRIORITY' ${DST}/etc/project_list.conf` ]];then
	echo 'POLICY_PRIORITY	struct' >> ${DST}/etc/project_list.conf
fi

if [[ -z `grep -rn 'TSG_MASTER_INTERNAL_LABEL' ${DST}/etc/project_list.conf` ]];then
	echo 'TSG_MASTER_INTERNAL_LABEL	struct' >> ${DST}/etc/project_list.conf
fi

if [[ -z `grep -rn 'tsg_master.inf' ${DST}/plug/conflist.inf` ]];then
	sed -i '/\[platform\]/a\./plug/platform/tsg_master/tsg_master.inf' ${DST}/plug/conflist.inf
fi