-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecBuild.sh
More file actions
executable file
·78 lines (61 loc) · 1.77 KB
/
recBuild.sh
File metadata and controls
executable file
·78 lines (61 loc) · 1.77 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/osmtKsh
#!/bin/osmtKsh
typeset RcsId="$Id: recBuild.sh,v 1.12 2003/04/15 23:22:49 mohsen Exp $"
if [ "${loadFiles}X" == "X" ] ; then
seedActions.sh -l $0 "$@"
exit $?
fi
function vis_examples {
typeset visLibExamples=`visLibExamplesOutput ${G_myName}`
cat << _EOF_
EXAMPLES:
${visLibExamples}
--- NOTYET FEATURES
${G_myName} -i cleanKeepResults
${G_myName} -i showSummary
${G_myName} -i showLog
${G_myName} -i showFailures
--- FULL ACTIONS
${G_myName} -i fullBuild &
${G_myName} -i fullClean &
_EOF_
}
function noArgsHook {
vis_examples
}
function vis_fullClean {
vis_fullAction fullClean
#FN_rmIfThere ${CURENVBASE}/tools/buildEnv.sh ${CURENVBASE}/tools/mkpDefault.parSh ${CURENVBASE}/tools/target.sh ${CURENVBASE}/tools/targetFamily.sh
}
function vis_fullBuild {
vis_fullAction fullBuild
}
function vis_fullAction {
# $1 = action to be taken
EH_assert [[ $# -eq 1 ]]
if [[ "${CURENVBASE}_" == "_" ]] ; then
EH_problem "You should dot/source ./setenv.sh first"
return 1
fi
typeset here=`pwd`
if [[ "${CURENVBASE}_" != "${here}_" ]] ; then
EH_problem "CURENVBASE mismatch -- ${CURENVBASE} != ${here}"
fi
# ./tools/target.sh
if [[ -e ${CURENVBASE}/tools/target.sh ]] ; then
ANT_raw "Using ${CURENVBASE}/tools/target.sh"
else
ANT_raw "Generating target.sh"
${CURENVBASE}/tools/targetSelect.sh -i defaultGen
fi
typeset dateTag=`date +%y%m%d%H%M%S`
typeset OUTFILE=Bout.`uname -n`.$dateTag
typeset ERRFILE=${OUTFILE}
echo "To see the results"
echo "tail -f ${OUTFILE}"
echo "tail -f ${ERRFILE}"
echo "Begin Date: `date`" 1> ${OUTFILE}
typeset orderedListStr=`./swProc.sh -i orderedList`
./swProc.sh ${orderedListStr} -a $1 1>> ${OUTFILE} 2>> ${ERRFILE}
echo "End Date: `date`" 1>> ${OUTFILE}
}