BELL support

Implemented opportunistic alarm support as proposed by torabora;
the actual result depends on readline and/or terminal settings
(read up on "visual bell" vs "audible bell" in case it's wrong).

TODO: this ought to be shifted downstream when proper logging
framework is there.
This commit is contained in:
Michael Shigorin 2011-10-31 17:49:05 +03:00
parent e8306860f1
commit 895fae7d82
3 changed files with 8 additions and 0 deletions

View File

@ -8,3 +8,6 @@
# spares tmpfs, quite recommended unless you need raw workdir chroots
#CLEAN = 1
# try and draw attention when done (depends on readline/terminal settings)
#BELL = 1

View File

@ -13,6 +13,10 @@
+ значение: пусто (по умолчанию авто), i586 или x86_64
+ см. ../lib/build.mk
- BELL
+ требует подачу сигнала после завершения сборки
+ см. ../lib/build.mk
- BUILDDIR
+ определяет каталог генерируемого профиля и сборки
+ значение: пусто (по умолчанию авто) либо строка

View File

@ -34,3 +34,4 @@ build: profile/populate
df -P $(BUILDDIR) | awk 'END { if ($$4 < 1024) \
{ print "** NB: low space on "$$6" ("$$5" used)"}}'; \
fi
@if [ -n "$(BELL)" ]; then echo -ne '\a' >&2; fi