initial commit
[m6w6/btr] / bin / btr
1 #!/bin/bash
2
3 export DATE=$(date +%Y%m%d%H%M%S)
4 export CPUS=${CPUS:-$(grep -c "^processor" /proc/cpuinfo)}
5
6 export BINDIR=$(realpath $(dirname $0)/)
7 export LIBDIR=$(realpath $(dirname $0)/../lib/btr)
8
9 . $LIBDIR/btr.sh
10
11 VERBOSE=false
12
13 parseopts $@
14 setup
15
16 if $VERBOSE
17 then
18 show_conf
19 confirm "Do you want to continue?" || exit
20 fi
21
22 REPORT="$(make -s -C $BTRDIR -f $LIBDIR/$SOURCE_RULES.mk && make -s -C $BTRDIR -f $LIBDIR/$BUILD_RULES.mk)"
23 make -s -C $BTRDIR -f $LIBDIR/$REPORT_RULES.mk REPORT="$REPORT"
24
25 # vim: set noet