aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-25 20:47:17 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-25 20:47:17 +0300
commitbfa920104f9d095ca9991f27c07c7d2d348b9a7f (patch)
tree9ae55ccd8a2174e449311f7077dc786a9f349cab /bootstrap
parent4d5d0a182367506e6811498ec33d569e2ec0ae1a (diff)
downloaddico-bfa920104f9d095ca9991f27c07c7d2d348b9a7f.tar.gz
dico-bfa920104f9d095ca9991f27c07c7d2d348b9a7f.tar.bz2
Minor improvement in bootstrap
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap9
1 files changed, 5 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index a5c62be..be55f18 100755
--- a/bootstrap
+++ b/bootstrap
@@ -905,15 +905,16 @@ if ($addmod) {
reconf();
} elsif ($#ARGV >= 0) {
abend(EX_USAGE, "too many arguments; did you mean --new?");
-} else {
- abend(EX_USAGE, "this does not look like a clone of the Dico repository; try $progname --help for more info")
- unless -d '.git';
-
+} elsif (-d '.git') {
error("Initializing submodules", fd => \*STDOUT) if $verbose;
run('git submodule init');
run('git submodule update');
modproc();
gnulib_init();
+} else {
+ error("this does not look like a clone of the Dico repository");
+ error("did you mean --modules?");
+ abend(EX_USAGE, "If not, try $progname --help for detailed info");
}
exit($status);

Return to:

Send suggestions and report system problems to the System administrator.