mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge remote-tracking branch 'tor-github/pr/1509' into maint-0.4.2
This commit is contained in:
commit
c3a1e15a5e
3
changes/bug32402
Normal file
3
changes/bug32402
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes (shellcheck):
|
||||
- Start checking most scripts for shellcheck errors again.
|
||||
Fixes bug 32402; bugfix on 0.4.2.1-alpha.
|
3
changes/bug32402_git_scripts
Normal file
3
changes/bug32402_git_scripts
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes (shellcheck):
|
||||
- Fix minor shellcheck errors in the git-*.sh scripts.
|
||||
Fixes bug 32402; bugfix on 0.4.2.1-alpha.
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_NAME=`basename $0`
|
||||
SCRIPT_NAME=$(basename "$0")
|
||||
|
||||
function usage()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_NAME=`basename $0`
|
||||
SCRIPT_NAME=$(basename "$0")
|
||||
|
||||
function usage()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_NAME=`basename $0`
|
||||
SCRIPT_NAME=$(basename "$0")
|
||||
|
||||
function usage()
|
||||
{
|
||||
@ -237,7 +237,7 @@ if [ "$PUSH_SAME" -eq 0 ] && [ "$TEST_BRANCH_PREFIX" ]; then
|
||||
fi
|
||||
done
|
||||
if [ "$SKIP_UPSTREAM" ]; then
|
||||
printf "Skipping unchanged: %s remote: %s\n" \
|
||||
printf "Skipping unchanged: %s remote: %s\\n" \
|
||||
"$b" "$SKIP_UPSTREAM"
|
||||
else
|
||||
if [ "$NEW_PUSH_BRANCHES" ]; then
|
||||
@ -261,18 +261,19 @@ if [ "$PUSH_DELAY" -le 0 ]; then
|
||||
$GIT_PUSH "$@" "$UPSTREAM_REMOTE" $PUSH_BRANCHES
|
||||
else
|
||||
# Push the branches in optimal CI order, with a delay between each push
|
||||
PUSH_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\n" | sort -V)
|
||||
MASTER_BRANCH=$(echo "$PUSH_BRANCHES" | tr " " "\n" | grep master)
|
||||
PUSH_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\\n" | sort -V)
|
||||
MASTER_BRANCH=$(echo "$PUSH_BRANCHES" | tr " " "\\n" | grep master)
|
||||
if [ -z "$TEST_BRANCH_PREFIX" ]; then
|
||||
MAINT_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\n" | grep maint)
|
||||
RELEASE_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\n" | grep release | \
|
||||
tr "\n" " ")
|
||||
printf "Pushing with %ss delays, so CI runs in this order:\n%s\n%s\n%s\n" \
|
||||
MAINT_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\\n" | grep maint)
|
||||
RELEASE_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\\n" | grep release | \
|
||||
tr "\\n" " ")
|
||||
printf \
|
||||
"Pushing with %ss delays, so CI runs in this order:\\n%s\\n%s\\n%s\\n" \
|
||||
"$PUSH_DELAY" "$MASTER_BRANCH" "$MAINT_BRANCHES" "$RELEASE_BRANCHES"
|
||||
else
|
||||
# Actually test branches based on maint branches
|
||||
MAINT_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\n" | grep -v master)
|
||||
printf "Pushing with %ss delays, so CI runs in this order:\n%s\n%s\n" \
|
||||
MAINT_BRANCHES=$(echo "$PUSH_BRANCHES" | tr " " "\\n" | grep -v master)
|
||||
printf "Pushing with %ss delays, so CI runs in this order:\\n%s\\n%s\\n" \
|
||||
"$PUSH_DELAY" "$MASTER_BRANCH" "$MAINT_BRANCHES"
|
||||
# No release branches
|
||||
RELEASE_BRANCHES=
|
||||
|
@ -35,12 +35,8 @@ if [ ! -d "$TOPLEVEL/src" ]; then
|
||||
fi
|
||||
|
||||
# Check *.sh scripts, but ignore the ones that we can't fix
|
||||
find "$TOPLEVEL" \
|
||||
find "$TOPLEVEL/contrib" "$TOPLEVEL/doc" "$TOPLEVEL/scripts" "$TOPLEVEL/src" \
|
||||
-name "*.sh" \
|
||||
-path "$TOPLEVEL/contrib/*" \
|
||||
-path "$TOPLEVEL/doc/*" \
|
||||
-path "$TOPLEVEL/scripts/*" \
|
||||
-path "$TOPLEVEL/src/*" \
|
||||
-not -path "$TOPLEVEL/src/ext/*" \
|
||||
-not -path "$TOPLEVEL/src/rust/registry/*" \
|
||||
-exec shellcheck {} +
|
||||
|
Loading…
Reference in New Issue
Block a user