ee595d2ae5
"echo -e" -> "printf" "exit -1" -> "exit 255" - some of the patches had hand-rolled chunks to replace /bin/bash with /bin/sh near a CVS keyword; remove these and replace with a pre-configure target making it easier to update-patches - change sample config to disable hardcoded escape sequences for colours by default - bump PKGNAME-main
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
$OpenBSD: patch-scripts_kamdbctl_base,v 1.1 2009/09/12 09:42:04 sthen Exp $
|
|
--- scripts/kamdbctl.base.orig Fri Sep 11 23:40:47 2009
|
|
+++ scripts/kamdbctl.base Fri Sep 11 23:42:25 2009
|
|
@@ -134,7 +134,7 @@ credentials()
|
|
mdbg() {
|
|
if [ "0$VERBOSE" -ne 0 ] ; then
|
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
|
- echo -e "\033[1m$1\033[0m"
|
|
+ printf "\033[1m$1\033[0m\n"
|
|
else
|
|
echo "$1"
|
|
fi
|
|
@@ -143,7 +143,7 @@ mdbg() {
|
|
|
|
mwarn() {
|
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
|
- echo -e '\E[37;32m'"\033[1mWARNING: $1\033[0m"
|
|
+ printf '\e[37;32m'"\033[1mWARNING: $1\033[0m\n"
|
|
else
|
|
echo "** WARNING: $1"
|
|
fi
|
|
@@ -151,7 +151,7 @@ mwarn() {
|
|
|
|
minfo() {
|
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
|
- echo -e '\E[37;33m'"\033[1mINFO: $1\033[0m"
|
|
+ printf '\e[37;33m'"\033[1mINFO: $1\033[0m\n"
|
|
else
|
|
echo "** INFO: $1"
|
|
fi
|
|
@@ -159,7 +159,7 @@ minfo() {
|
|
|
|
mecho() {
|
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
|
- echo -e "\033[1m$1\033[0m"
|
|
+ printf "\033[1m$1\033[0m\n"
|
|
else
|
|
echo "$1"
|
|
fi
|
|
@@ -167,7 +167,7 @@ mecho() {
|
|
|
|
merr() {
|
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
|
- echo -e '\E[37;31m'"\033[1mERROR: $1\033[0m"
|
|
+ printf '\e[37;31m'"\033[1mERROR: $1\033[0m\n"
|
|
else
|
|
echo "** ERROR: $1"
|
|
fi
|