aboutsummaryrefslogtreecommitdiff
path: root/beam.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2014-03-19 07:44:16 +0200
committerSergey Poznyakoff <gray@gnu.org>2014-03-19 07:44:16 +0200
commit22cddd5c61d150584a065c1a5e6963e8e95a43cb (patch)
tree86859e8dc93677226d668cd20a71f805d99181eb /beam.in
parent10d30373c6fdf0dd23f16251fa2302c18b7eef97 (diff)
downloadbeam-22cddd5c61d150584a065c1a5e6963e8e95a43cb.tar.gz
beam-22cddd5c61d150584a065c1a5e6963e8e95a43cb.tar.bz2
Use uniform indentation, add missing copyleft headers, update years.
Diffstat (limited to 'beam.in')
-rw-r--r--beam.in77
1 files changed, 46 insertions, 31 deletions
diff --git a/beam.in b/beam.in
index 480351c..7281a18 100644
--- a/beam.in
+++ b/beam.in
@@ -1,4 +1,19 @@
#! /bin/sh
+# This file is part of BEAM
+# Copyright (C) 2012-2014 Sergey Poznyakoff
+#
+# BEAM 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 3, or (at your option)
+# any later version.
+#
+# BEAM 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with BEAM. If not, see <http://www.gnu.org/licenses/>.
libdir=@LIBDIR@/beam
set -e
@@ -6,53 +21,53 @@ set -e
set +e
help() {
- cat <<EOT
+ cat <<EOT
usage: beam COMMAND [OPTIONS] [ITEM [ITEM...]]
COMMANDS are:
EOT
- for cmd in @LIBEXECDIR@/beam-*
- do
- test -x $cmd && $cmd --wtf
- done
- wtf help display help page for a particular command
- echo ""
- echo "Report bugs to <@PACKAGE_BUGREPORT@>"
- exit 0
+ for cmd in @LIBEXECDIR@/beam-*
+ do
+ test -x $cmd && $cmd --wtf
+ done
+ wtf help display help page for a particular command
+ echo ""
+ echo "Report bugs to <@PACKAGE_BUGREPORT@>"
+ exit 0
}
while [ $# -ne 0 ]
do
- case $1 in
- -h|--help) help;;
- -V|--version) print_version;;
- --) shift; break;;
- -*) echo >&2 "$0: unrecognized option $1"; exit 1;;
- *) break;;
- esac
- shift
+ case $1 in
+ -h|--help) help;;
+ -V|--version) print_version;;
+ --) shift; break;;
+ -*) echo >&2 "$0: unrecognized option $1"; exit 1;;
+ *) break;;
+ esac
+ shift
done
if [ $# -eq 0 ]; then
- error "command not specified"
- abend 1 "try $0 --help for more details"
+ error "command not specified"
+ abend 1 "try $0 --help for more details"
fi
if [ $1 = "help" ]; then
- shift
- if [ $# -eq 0 ]; then
- man 1 beam
- else
- man 1 beam-$1
- fi
- exit $?
+ shift
+ if [ $# -eq 0 ]; then
+ man 1 beam
+ else
+ man 1 beam-$1
+ fi
+ exit $?
fi
if [ -x @LIBEXECDIR@/beam-$1 ]; then
- cmd=@LIBEXECDIR@/beam-$1
- shift
- $cmd $@
+ cmd=@LIBEXECDIR@/beam-$1
+ shift
+ $cmd $@
else
- error "unknown command"
- abend 1 "try $0 --help for more details"
+ error "unknown command"
+ abend 1 "try $0 --help for more details"
fi

Return to:

Send suggestions and report system problems to the System administrator.