move point to raise exception
[sunny256-utils.git] / all-lpar
blob355c1ac4a728c949959e71c602bc56f95c63d036
1 #!/usr/bin/env bash
3 #=======================================================================
4 # all-lpar
5 # File ID: d96bacfe-6dda-11e3-8559-001f3b596ec9
7 # Execute "lpar" in all subdirs, options are delivered to
8 # git-update-dirs(1).
10 # Author: Øyvind A. Holm <sunny@sunbase.org>
11 # License: GNU General Public License version 2 or later.
12 #=======================================================================
14 progname=all-lpar
15 VERSION=0.1.0
17 if test "$1" = "--version"; then
18 echo $progname $VERSION
19 exit 0
22 if test "$1" = "-h" -o "$1" = "--help"; then
23 cat <<END
25 Execute "lpar" in all subdirs, options are delivered to
26 git-update-dirs(1).
28 Usage: $progname [options] [args_and_options_to_git-update-dirs]
30 Options:
32 -h, --help
33 Show this help.
34 --version
35 Print version information.
37 END
38 exit 0
41 find -name '*.git' -print0 | sort -z | xargs -0 git update-dirs -l "$@"