summaryrefslogtreecommitdiff
path: root/head.sh
blob: 1b429774f8193959dd7a618a07fa05e779f3bc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
# -*- ENCODING: UTF-8 -*-
# FIXME: change script slug, full name and description, author and license
# head - script name 
# description
# Author: me
# License: Public Domain

# scriptinfo
SCRIPTNAME="${0##*/}"
SCRIPTNAME="${SCRIPTNAME%%.sh}"
#FIXME: add version, author and license if needed
VERSION=""		              # Version description
AUTHOR=""
LICENSE=""

# usage
#FIXME: "edit what's needed"
usage () {
test "$#" = 0 || printf "%s %s\\n" "${SCRIPTNAME}" "$@"
cat << EOF | fold -s
${SCRIPTNAME} version ${VERSION}
  by ${AUTHOR}
  License: ${LICENSE}

#FIXME: script description and usage options
${SCRIPTNAME} is a

Usage:  ${SCRIPTNAME} [options] <args>
Usage:  ${SCRIPTNAME} [-a|-b] <args>
   or:  ${SCRIPTNAME} -h
   or:  ...

Options
   -a   <args>        A description
   -b   <BARGS>       B description
   -h   HELP          Print this help and exit

For more details about this script go to
Official Repository: 
Mirror Repository: 
EOF
exit 0 
}