live-build/functions/usage.sh

34 lines
656 B
Bash
Raw Normal View History

2007-09-23 08:04:47 +00:00
#!/bin/sh
2007-09-23 08:04:48 +00:00
# usage.sh - print usage information
2008-03-06 14:43:00 -01:00
# Copyright (C) 2006-2008 Daniel Baumann <daniel@debian.org>
2007-09-23 08:04:48 +00:00
#
# 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
2007-09-23 08:04:47 +00:00
#FIXME: put this in l10n standard
2007-09-23 08:04:47 +00:00
Usage ()
{
echo "${PROGRAM} - ${DESCRIPTION}"
echo
2007-09-23 08:04:48 +00:00
echo "Usage:"
echo
if [ -n "${USAGE}" ]
then
echo " ${USAGE}"
echo
fi
echo " ${PROGRAM} [-h|--help]"
echo " ${PROGRAM} [-u|--usage]"
echo " ${PROGRAM} [-v|--version]"
2007-09-23 08:04:47 +00:00
echo
echo "Try \"${PROGRAM} --help\" for more information."
2007-09-23 08:04:48 +00:00
2007-09-23 08:04:47 +00:00
exit 1
}