summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:35:31 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:35:31 +0100
commit10344cfad550fb6673fe15afd22717977933aaa1 (patch)
tree23b0a1f29f743fada4bf1e4fae5aa8d1bf1f58b6
parentAdd alias to run git besect with standard build options (diff)
downloadutil-10344cfad550fb6673fe15afd22717977933aaa1.tar.bz2
util-10344cfad550fb6673fe15afd22717977933aaa1.tar.xz
util-10344cfad550fb6673fe15afd22717977933aaa1.zip
Cleaner autobuild
-rw-r--r--bashrc11
1 files changed, 8 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index 7e9307e..5e5b41a 100644
--- a/bashrc
+++ b/bashrc
@@ -160,6 +160,12 @@ EOF
rm -f $launcher
}
+reset()
+{
+ clear
+ printf '\e[3J'
+}
+
bisect() {
MAILINGLISTS_INSTALL_BASE=$(git root)/../mailinglists ANALYTICS_INSTALL_BASE=$(git root)/analytics OCTAL_INSTALL_BASE=$(git root)/../smssite OCTAL_BASE=$(git root) CCACHE_BASEDIR=$(git root) git bisect run nice -n5 b2 -l300 -j$TASKS $@
}
@@ -176,9 +182,8 @@ build() {
}
onchange() {
$@
- while inotifywait -qr . --exclude '/bin/|\.sw.|/target/|/\.git/|\.gcov' -e modify ; do
- clear
- printf '\e[3J'
+ while inotifywait -qr . --exclude '\<bin\>|/tags$|\.sw.$|\<target\>|/\.git/|\.gcov$' -e modify ; do
+ reset
$@
done
}