logging.bash: Add dedcat and excat helpers
This commit is contained in:
parent
ccf335b69a
commit
b4e2541e50
3 changed files with 5 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ Usage: $0 BRANCH_A UPSTREAM_BRANCH [START_REFSPEC]
|
|||
Note: Commit hashes are walked along UPSTREAM_BRANCH.
|
||||
EOUSAGE
|
||||
|
||||
[ -z "$1" -o -z "$2" ] && errcat "$usage" && exit 1
|
||||
[ -z "$1" -o -z "$2" ] && dedcat "$usage"
|
||||
|
||||
branch_a="$1"
|
||||
upstream_branch="$2"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ get-incl() {
|
|||
cc=${CC:-cc}
|
||||
cxx=${CXX:-cxx}
|
||||
|
||||
[ -z "$1" ] && errcat "$usage" && exit 1
|
||||
[ -z "$1" ] && dedcat "$usage"
|
||||
|
||||
case "$1" in
|
||||
'clang') ;&
|
||||
|
|
@ -72,8 +72,7 @@ while getopts 'cpP' opt; do
|
|||
sort -u <<<$(get-both)
|
||||
;;
|
||||
*)
|
||||
errcat "$usage"
|
||||
exit 1
|
||||
dedcat "$usage"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue