live-build/functions/help.sh

38 lines
732 B
Bash
Raw Permalink Normal View History

2007-09-23 08:04:47 +00:00
#!/bin/sh
2007-09-23 08:04:48 +00:00
# help.sh - print help 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
Help ()
{
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"
2007-09-23 08:04:47 +00:00
echo
Echo "Usage:"
2007-09-23 08:04:47 +00:00
echo
2007-09-23 08:04:48 +00:00
if [ -n "${USAGE}" ]
then
Echo "${USAGE}"
2007-09-23 08:04:48 +00:00
echo
fi
Echo " %s [-h|--help]" "${PROGRAM}"
Echo " %s [-u|--usage]" "${PROGRAM}"
Echo " %s [-v|--version]" "${PROGRAM}"
2007-09-23 08:04:47 +00:00
echo
2007-09-23 08:04:48 +00:00
if [ -n "${HELP}" ]
then
Echo "${HELP}"
2007-09-23 08:04:48 +00:00
echo
fi
Echo "Report bugs to Debian Live project <http://debian-live.alioth.debian.org/>."
2007-09-23 08:04:47 +00:00
exit 0
}