Commit 895fae7d authored by Michael Shigorin's avatar Michael Shigorin

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.
parent e8306860
......@@ -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
......@@ -13,6 +13,10 @@
+ значение: пусто (по умолчанию авто), i586 или x86_64
+ см. ../lib/build.mk
- BELL
+ требует подачу сигнала после завершения сборки
+ см. ../lib/build.mk
- BUILDDIR
+ определяет каталог генерируемого профиля и сборки
+ значение: пусто (по умолчанию авто) либо строка
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment