#!/bin/sh # echo.sh - define output methods # Copyright (C) 2006-2007 Daniel Baumann # # live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. # This is free software, and you are welcome to redistribute it # under certain conditions; see COPYING for details. set -e Echo_debug () { if [ "${DEBUG}" = "true" ] then echo "D: ${@}" fi } Echo_error () { echo "E: ${@}" } Echo_message () { if [ "${QUIET}" != "true" ] then echo "P: ${@}" fi } Echo_verbose () { if [ "${VERBOSE}" = "true" ] then echo "I: ${@}" fi } Echo_warning () { echo "W: ${@}" }