source: live-build/trunk/fuentes/functions/usage.sh @ 900

Last change on this file since 900 was 900, checked in by kbut, 4 years ago

add original source

  • Property svn:executable set to *
File size: 669 bytes
Line 
1#!/bin/sh
2
3## live-build(7) - System Build Scripts
4## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
5##
6## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7## This is free software, and you are welcome to redistribute it
8## under certain conditions; see COPYING for details.
9
10
11Usage ()
12{
13        printf "%s - %s\n" "${PROGRAM}" "${DESCRIPTION}"
14        echo
15        Echo "Usage:"
16        echo
17
18        if [ -n "${USAGE}" ]
19        then
20                Echo " ${USAGE}"
21                echo
22        fi
23
24        printf "  %s [-h|--help]\n" "${PROGRAM}"
25        printf "  %s [-u|--usage]\n" "${PROGRAM}"
26        printf "  %s [-v|--version]\n" "${PROGRAM}"
27        echo
28        Echo "Try \"%s --help\" for more information." "${PROGRAM}"
29
30        exit 1
31}
Note: See TracBrowser for help on using the repository browser.