-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathall-lpar
executable file
·41 lines (31 loc) · 907 Bytes
/
all-lpar
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
#!/usr/bin/env bash
#=======================================================================
# all-lpar
# File ID: d96bacfe-6dda-11e3-8559-001f3b596ec9
#
# Execute "lpar" in all subdirs, options are delivered to
# git-update-dirs(1).
#
# Author: Øyvind A. Holm <[email protected]>
# License: GNU General Public License version 2 or later.
#=======================================================================
progname=all-lpar
VERSION=0.1.0
if test "$1" = "--version"; then
echo $progname $VERSION
exit 0
fi
if test "$1" = "-h" -o "$1" = "--help"; then
cat <<END
Execute "lpar" in all subdirs, options are delivered to
git-update-dirs(1).
Usage: $progname [options] [args_and_options_to_git-update-dirs]
Options:
-h, --help
Show this help.
--version
Print version information.
END
exit 0
fi
find -name '*.git' -print0 | sort -z | xargs -0 git update-dirs -l "$@"