86d458c406
- fix bash completion for the binary rename (#1352330)
110 lines
4.5 KiB
Diff
110 lines
4.5 KiB
Diff
diff -u -r -U5 --no-dereference ninja-1.7.1/misc/bash-completion ninja-1.7.1.binary-rename/misc/bash-completion
|
|
--- ninja-1.7.1/misc/bash-completion 2016-04-28 10:56:44.000000000 -0400
|
|
+++ ninja-1.7.1.binary-rename/misc/bash-completion 2016-07-23 22:34:22.679659551 -0400
|
|
@@ -47,11 +47,11 @@
|
|
case $opt in
|
|
# eval for tilde expansion
|
|
C) eval dir="$OPTARG" ;;
|
|
esac
|
|
done;
|
|
- targets_command="eval ninja -C \"${dir}\" -t targets all 2>/dev/null | cut -d: -f1"
|
|
+ targets_command="eval ninja-build -C \"${dir}\" -t targets all 2>/dev/null | cut -d: -f1"
|
|
COMPREPLY=($(compgen -W '`${targets_command}`' -- "$cur"))
|
|
fi
|
|
return
|
|
}
|
|
-complete -F _ninja_target ninja
|
|
+complete -F _ninja_target ninja ninja-build
|
|
diff -u -r -U5 --no-dereference ninja-1.7.1/misc/zsh-completion ninja-1.7.1.binary-rename/misc/zsh-completion
|
|
--- ninja-1.7.1/misc/zsh-completion 2016-04-28 10:56:44.000000000 -0400
|
|
+++ ninja-1.7.1.binary-rename/misc/zsh-completion 2016-07-23 22:32:50.157488686 -0400
|
|
@@ -1,6 +1,6 @@
|
|
-#compdef ninja
|
|
+#compdef ninja ninja-build
|
|
# Copyright 2011 Google Inc. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
Only in ninja-1.7.1.binary-rename: ninja-1.7.1-binary-rename.patch
|
|
diff -u -r -U5 --no-dereference ninja-1.7.1/src/msvc_helper_main-win32.cc ninja-1.7.1.binary-rename/src/msvc_helper_main-win32.cc
|
|
--- ninja-1.7.1/src/msvc_helper_main-win32.cc 2016-04-28 10:56:44.000000000 -0400
|
|
+++ ninja-1.7.1.binary-rename/src/msvc_helper_main-win32.cc 2016-07-23 22:32:50.158488688 -0400
|
|
@@ -26,11 +26,11 @@
|
|
|
|
namespace {
|
|
|
|
void Usage() {
|
|
printf(
|
|
-"usage: ninja -t msvc [options] -- cl.exe /showIncludes /otherArgs\n"
|
|
+"usage: ninja-build -t msvc [options] -- cl.exe /showIncludes /otherArgs\n"
|
|
"options:\n"
|
|
" -e ENVFILE load environment block from ENVFILE as environment\n"
|
|
" -o FILE write output dependency information to FILE.d\n"
|
|
" -p STRING localized prefix of msvc's /showIncludes output\n"
|
|
);
|
|
Only in ninja-1.7.1.binary-rename/src: msvc_helper_main-win32.cc.orig
|
|
diff -u -r -U5 --no-dereference ninja-1.7.1/src/ninja.cc ninja-1.7.1.binary-rename/src/ninja.cc
|
|
--- ninja-1.7.1/src/ninja.cc 2016-04-28 10:56:44.000000000 -0400
|
|
+++ ninja-1.7.1.binary-rename/src/ninja.cc 2016-07-23 22:33:09.775525262 -0400
|
|
@@ -191,11 +191,11 @@
|
|
};
|
|
|
|
/// Print usage information.
|
|
void Usage(const BuildConfig& config) {
|
|
fprintf(stderr,
|
|
-"usage: ninja [options] [targets...]\n"
|
|
+"usage: ninja-build [options] [targets...]\n"
|
|
"\n"
|
|
"if targets are unspecified, builds the 'default' target (see manual).\n"
|
|
"\n"
|
|
"options:\n"
|
|
" --version print ninja version (\"%s\")\n"
|
|
@@ -283,13 +283,13 @@
|
|
return node;
|
|
} else {
|
|
*err =
|
|
"unknown target '" + Node::PathDecanonicalized(path, slash_bits) + "'";
|
|
if (path == "clean") {
|
|
- *err += ", did you mean 'ninja -t clean'?";
|
|
+ *err += ", did you mean 'ninja-build -t clean'?";
|
|
} else if (path == "help") {
|
|
- *err += ", did you mean 'ninja -h'?";
|
|
+ *err += ", did you mean 'ninja-build -h'?";
|
|
} else {
|
|
Node* suggestion = state_.SpellcheckNode(path);
|
|
if (suggestion) {
|
|
*err += ", did you mean '" + suggestion->path() + "'?";
|
|
}
|
|
@@ -581,11 +581,11 @@
|
|
case 'r':
|
|
clean_rules = true;
|
|
break;
|
|
case 'h':
|
|
default:
|
|
- printf("usage: ninja -t clean [options] [targets]\n"
|
|
+ printf("usage: ninja-build -t clean [options] [targets]\n"
|
|
"\n"
|
|
"options:\n"
|
|
" -g also clean files marked as ninja generator output\n"
|
|
" -r interpret targets as a list of rules to clean instead\n"
|
|
);
|
|
Only in ninja-1.7.1.binary-rename/src: ninja.cc.orig
|
|
Only in ninja-1.7.1.binary-rename/src: ninja.cc.rej
|
|
diff -u -r -U5 --no-dereference ninja-1.7.1/src/version.cc ninja-1.7.1.binary-rename/src/version.cc
|
|
--- ninja-1.7.1/src/version.cc 2016-04-28 10:56:44.000000000 -0400
|
|
+++ ninja-1.7.1.binary-rename/src/version.cc 2016-07-23 22:32:50.159488690 -0400
|
|
@@ -36,11 +36,11 @@
|
|
ParseVersion(kNinjaVersion, &bin_major, &bin_minor);
|
|
int file_major, file_minor;
|
|
ParseVersion(version, &file_major, &file_minor);
|
|
|
|
if (bin_major > file_major) {
|
|
- Warning("ninja executable version (%s) greater than build file "
|
|
+ Warning("ninja-build executable version (%s) greater than build file "
|
|
"ninja_required_version (%s); versions may be incompatible.",
|
|
kNinjaVersion, version.c_str());
|
|
return;
|
|
}
|
|
|