projects
/
m6w6
/
btr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
btr-hook and some generalizations
[m6w6/btr]
/
bin
/
btr
diff --git
a/bin/btr
b/bin/btr
index 2eaeac818abb1c94bf2e355947e05339f065447c..a8a29a44701d1d0aa4f912578a943954d5872f92 100755
(executable)
--- a/
bin/btr
+++ b/
bin/btr
@@
-1,25
+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=$(realpath $(dirname $0)/)
+export BTR_LIBDIR=$(realpath $(dirname $0)/../share/btr)
+BTR_BANNER="Build, test & report. Simple and stupid."
-export BINDIR=$(realpath $(dirname $0)/)
-export LIBDIR=$(realpath $(dirname $0)/../lib/btr)
+. $BTR_LIBDIR/common.sh
+. $BTR_LIBDIR/btr.sh
-. $LIBDIR/btr.sh
+btr-parseopts "$@"
+btr-setup
-VERBOSE=false
-
-parseopts $@
-setup
-
-if $VERBOSE
+if $BTR_VERBOSE
then
then
- show_conf
- confirm "Do you want to continue?" || exit
+ btr-conf-show
+ btr-confirm "Everything setup. Do you want to continue?"
fi
fi
-REPORT="$(make -s -C $BTRDIR -f $LIBDIR/$SOURCE_RULES.mk && make -s -C $BTRDIR -f $LIBDIR/$BUILD_RULES.mk)"
-make -s -C $BTRDIR -f $LIBDIR/$REPORT_RULES.mk REPORT="$REPORT"
+btr-run
-# vim:
set
noet
+# vim: noet