Use CMake variables for sbin and etc files
[platform/core/api/libteec.git] / src / scripts / tef-update.sh.in
1 #!/bin/sh
2
3 TEF_CONF="@SYSCONF_INSTALL_DIR@/tef/tef.conf"
4 TEF_IMPLEMENTATION=$1
5
6 if [ ! -f "$TEF_CONF" ]; then
7         exit 1
8 fi
9
10 LABEL=`ls -Z $TEF_CONF| cut -d " " -f 1`
11 sed -i -e 's/^lib=.*$/lib='"$TEF_IMPLEMENTATION"'/' "$TEF_CONF"
12 chsmack -a "$LABEL" $TEF_CONF