1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/sh
set -e
#
# function definitions
#
set_debug ()
{
debug=$1
if [ $debug -eq 1 ]; then
set -x
make_debug='--debug=a'
else
set +x
make_debug=''
fi
}
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/sh
set -e
#
# function definitions
#
set_debug ()
{
debug=$1
if ( $debug ); then
set -x
make_debug='--debug=a'
else
set +x
make_debug=''
fi
}
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
esac
echo "#Error: " $message
exit errno;
}
check_for_valid_input ()
{
args="$*"
if [ $# -neq 4 ]; then
exit_error "Invalid Input"
fi
}
#
# file templates
#
# template_README compilation instructions
|
|
<
<
<
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
esac
echo "#Error: " $message
exit errno;
}
check_for_valid_input ()
{
return 0;
}
#
# file templates
#
# template_README compilation instructions
|
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
|
### main program
set_debug 0
check_for_valid_input "$*"
OPTS="$1" SYS="$2" REP="$3" LANG="$4" make $make_debug -f ${MTT_REP}/sfun_rep/Makefile ${2}_${3}.${4}
exit 0
|
|
|
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
|
### main program
set_debug false
check_for_valid_input "$*"
OPTS="$1" SYS="$2" REP="$3" LANG="$4" make $make_debug -f ${MTT_REP}/sfun_rep/Makefile ${2}_${3}.${4}
exit 0
|