2007-09-23 08:04:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-09-23 08:04:48 +00:00
|
|
|
# usage.sh - print usage information
|
|
|
|
# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org>
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
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
|
|
|
|
}
|