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
|
|
|
|
|
|
|
Usage ()
|
|
|
|
{
|
2008-08-14 19:46:19 +00:00
|
|
|
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"
|
2007-09-23 08:04:47 +00:00
|
|
|
echo
|
2008-08-14 19:46:19 +00:00
|
|
|
Echo "Usage:"
|
2007-09-23 08:04:48 +00:00
|
|
|
echo
|
|
|
|
|
|
|
|
if [ -n "${USAGE}" ]
|
|
|
|
then
|
2008-08-15 22:08:43 +00:00
|
|
|
Echo " ${USAGE}"
|
2007-09-23 08:04:48 +00:00
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2008-08-14 19:46:19 +00:00
|
|
|
Echo " %s [-h|--help]" "${PROGRAM}"
|
|
|
|
Echo " %s [-u|--usage]" "${PROGRAM}"
|
|
|
|
Echo " %s [-v|--version]" "${PROGRAM}"
|
2007-09-23 08:04:47 +00:00
|
|
|
echo
|
2008-08-14 19:46:19 +00:00
|
|
|
Echo "Try \" %s--help\" for more information." "${PROGRAM}"
|
2007-09-23 08:04:48 +00:00
|
|
|
|
2007-09-23 08:04:47 +00:00
|
|
|
exit 1
|
|
|
|
}
|