Changes after timeDelta parameter removed from PostRender
[platform/core/uifw/dali-toolkit.git] / automated-tests / scripts / add_all_smack_rule.sh
1 #!/bin/sh
2
3 SCRIPTDIR=`dirname $(readlink -f $0)`
4 SMACK_FILE=$SCRIPTDIR/all_smack.rule
5         
6 echo ""
7 echo "Add smack rule in $SMACK_FILE"
8 echo "==================================================="
9 echo ""
10
11 while read rule; do
12         NO_BLANK=$(echo $rule | sed 's/ //g' | sed 's/  //g')
13         if [ ${#NO_BLANK} -lt 1 ]; then
14                 echo "Blank"
15                 continue
16         elif [ `echo $NO_BLANK|cut -c1-1` = '#' ]; then
17                 echo "Comment"
18                 continue
19         fi
20
21         echo "echo \"$rule\" > /smack/load2"
22         echo "$rule" > /smack/load2
23 done < $SMACK_FILE
24
25 echo "==================================================="
26 echo ""