]> arthur.barton.de Git - usertools.macosx.git/blobdiff - userlist.macosx.sh
Add GNU General Public License text and pointers
[usertools.macosx.git] / userlist.macosx.sh
index f9f0f2f77d4a4e0fc04ee9456b5c4e78318ab008..a5f186bec4827b67483c3e489abd90445113b266 100755 (executable)
@@ -1,4 +1,31 @@
 #!/bin/bash
 #!/bin/bash
+#
+# listusers.sh
+# Copyright (c)2008,2009 Barton IT-Consulting, Alexander Barton
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
+#
+
+RELEASE="2"
+
+Usage() {
+       echo "$NAME (userlist.macosx.sh) release $RELEASE"
+       echo "Copyright (c)2008,2009 Barton IT-Consulting, Alex Barton (alex@barton-it.de)"
+       echo
+       echo "This is free software; see the source for copying conditions. There is NO"
+       echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+       echo
+       echo "Usage: $0 [--all|-a] [--local|-l]"
+       echo
+       exit 1
+}
 
 while [ -n "$1" ]; do
        case "$1" in
 
 while [ -n "$1" ]; do
        case "$1" in
@@ -9,7 +36,7 @@ while [ -n "$1" ]; do
                LOCAL=1
                ;;
        *)
                LOCAL=1
                ;;
        *)
-               echo "Usage: $0 [--local|-l]"
+               Usage
                exit 1
        esac
        shift
                exit 1
        esac
        shift