~comnets/openwns-lte/openwns-lte

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
# This reads the RECIPIENTS variable as follows:
# It tries to find the top most TLA project and
# sources "config/hook" from there. The methods
# defined here will automatically be overridden.

function commit()
{
	# how to define an empty bash function?
	initially="left empty"
}

function precommit()
{
	# how to define an empty bash function?
	initially="left empty"
}

wnsRoot=$(tla tree-root)
inTree=0

while [ $inTree -eq 0 ]; do
   wnsRoot=${wnsRoot}/..
   guardFile=$wnsRoot"/.thisIsTheRootOfWNS"
   if [ -f $guardFile ];
   then
     inTree=1
   fi
done

source ${wnsRoot}/config/hook