From 5309bfbed28679cc35e8099a38e774866ecd822a Mon Sep 17 00:00:00 2001 From: George Danchev Date: Sat, 9 Jul 2011 16:31:46 +0000 Subject: [PATCH] split off common routines for boldification of FAILs --- libisoburn/trunk/releng/inc/releng_getopts.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libisoburn/trunk/releng/inc/releng_getopts.inc b/libisoburn/trunk/releng/inc/releng_getopts.inc index cc1ad35e..b29d62a0 100644 --- a/libisoburn/trunk/releng/inc/releng_getopts.inc +++ b/libisoburn/trunk/releng/inc/releng_getopts.inc @@ -20,6 +20,14 @@ Usage: $SELF -x path/to/xorriso [-k0|1] [-f0|1] [-h] EOF } +boldify() { + if which tput >/dev/null 2>&1; then tput smso; fi +} + +unboldify() { + if which tput >/dev/null 2>&1; then tput rmso; fi +} + ############################################# cleanup() { if [ ${KEEP} -eq 0 -a ${CLEANUP} -eq 1 ]; then