projects
/
m6w6
/
btr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
OSX compatibility
[m6w6/btr]
/
bin
/
btr
diff --git
a/bin/btr
b/bin/btr
index 6f303b7f21cd826fb10ac45736295215a1b7dfe9..db82d6fec94f9dd444a0e8c1c295246ae7ead5bb 100755
(executable)
--- a/
bin/btr
+++ b/
bin/btr
@@
-1,29
+1,21
@@
#!/bin/bash
#!/bin/bash
-export DATE=$(date +%Y%m%d%H%M%S)
-export CPUS=${CPUS:-$(grep -c "^processor" /proc/cpuinfo)}
+export BTR_BINDIR=$(dirname $0)/
+export BTR_LIBDIR=$(dirname $0)/../share/btr
+BTR_BANNER="Build, test & report. Simple and stupid."
-export BINDIR=$(realpath $(dirname $0)/)
-export LIBDIR=$(realpath $(dirname $0)/../share/btr)
+. $BTR_LIBDIR/common.sh
+. $BTR_LIBDIR/btr.sh
-. $LIBDIR/btr.sh
+btr_parseopts "$@"
+btr_setup
-QUIET=false
-VERBOSE=false
-FORCEYES=false
-
-parseopts "$@"
-setup
-
-if $VERBOSE
+if $BTR_VERBOSE
then
then
- show_conf
- $FORCEYES || confirm "Everything setup. Do you want to continue?" || exit
+ btr_conf_show
+ btr_confirm "Everything setup. Do you want to continue?"
fi
fi
-set -e
-make -e $SILENT_FLAG -C $BTRDIR -f $LIBDIR/source/$SOURCE_RULES.mk
-make -e $SILENT_FLAG -C $BTRDIR -f $LIBDIR/build/$BUILD_RULES.mk
-make -e $SILENT_FLAG -C $BTRDIR -f $LIBDIR/report/$REPORT_RULES.mk
+btr_run
# vim: noet
# vim: noet