Revision 68e2ed87
b/devel/upload.in | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
|
3 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc. |
|
3 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc.
|
|
4 | 4 |
# |
5 | 5 |
# This program is free software; you can redistribute it and/or modify |
6 | 6 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
27 | 27 |
|
28 | 28 |
set -e |
29 | 29 |
|
30 |
usage() { |
|
31 |
echo "Usage: $0 [--no-restart] [--no-cron] [--no-debug] hosts..." >&2 |
|
32 |
exit $1 |
|
33 |
} |
|
34 |
|
|
30 | 35 |
PREFIX='@PREFIX@' |
31 | 36 |
SYSCONFDIR='@SYSCONFDIR@' |
32 | 37 |
PKGLIBDIR='@PKGLIBDIR@' |
... | ... | |
48 | 53 |
NO_DEBUG=1 |
49 | 54 |
;; |
50 | 55 |
-h|--help) |
51 |
echo "Usage: $0 [--no-restart] hosts..." |
|
52 |
exit 0 |
|
56 |
usage 0 |
|
53 | 57 |
;; |
54 | 58 |
-*) |
55 | 59 |
echo "Unknown option: $opt" >&2 |
56 |
exit 1
|
|
60 |
usage 1
|
|
57 | 61 |
;; |
58 | 62 |
*) |
59 | 63 |
hosts="$hosts $opt" |
... | ... | |
62 | 66 |
shift |
63 | 67 |
done |
64 | 68 |
|
69 |
if [ -z "$hosts" ]; then |
|
70 |
usage 1 |
|
71 |
fi |
|
72 |
|
|
65 | 73 |
set ${hosts} |
66 | 74 |
|
67 | 75 |
make regen-vcs-version |
Also available in: Unified diff