~asac/live-build/virtual-hdd-mtab-hack

« back to all changes in this revision

Viewing changes to functions/usage.sh

  • Committer: Daniel Baumann
  • Date: 2009-11-22 13:38:00 UTC
  • Revision ID: git-v1:a62f12110b19a52a58d7eae871012202cfa16055
Renaming categories to archive areas (Closes: #519690).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# usage.sh - print usage information
 
4
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
 
5
#
 
6
# live-helper 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
Usage ()
 
11
{
 
12
        printf "%s - %s\n" "${PROGRAM}" "${DESCRIPTION}"
 
13
        echo
 
14
        Echo "Usage:"
 
15
        echo
 
16
 
 
17
        if [ -n "${USAGE}" ]
 
18
        then
 
19
                Echo " ${USAGE}"
 
20
                echo
 
21
        fi
 
22
 
 
23
        printf "  %s [-h|--help]\n" "${PROGRAM}"
 
24
        printf "  %s [-u|--usage]\n" "${PROGRAM}"
 
25
        printf "  %s [-v|--version]\n" "${PROGRAM}"
 
26
        echo
 
27
        Echo "Try \" %s--help\" for more information." "${PROGRAM}"
 
28
 
 
29
        exit 1
 
30
}