Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor-browser-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
tor-browser-build
Commits
15ee5d47
Verified
Commit
15ee5d47
authored
8 months ago
by
ma1
Browse files
Options
Downloads
Patches
Plain Diff
Bug 41381: More flexible tagging script.
parent
eec3a378
Branches
tor-browser-115.9.1esr-13.0-1
No related tags found
1 merge request
!1155
Bug 41381: More flexible tagging script.
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/browser/README.md
+3
-3
3 additions, 3 deletions
tools/browser/README.md
tools/browser/sign-tag
+12
-2
12 additions, 2 deletions
tools/browser/sign-tag
with
15 additions
and
5 deletions
tools/browser/README.md
+
3
−
3
View file @
15ee5d47
...
...
@@ -37,11 +37,11 @@ This script gpg signs a git tag associated with a particular browser commit in t
#### Prerequisites
-
The user m
ust
create the following soft-links:
-
The user m
ay
create the following soft-links
(by default they are automatically pointed to ../../git_clones/firefox)
:
-
`/tools/browser/basebrowser`
->
`/path/to/local/tor-browser.git`
-
`/tools/browser/mullvadbrowser`
->
`/path/to/local/mullvad-browser.git`
-
`/tools/browser/torbrowser`
->
`/path/to/local/tor-browser.git`
-
The user must first checkout the relevant branch of the commit we are tagging
-
The user must first checkout the relevant branch
(local or remote-tracking)
of the commit we are tagging
-
This is needed to extract the ESR version, branch-number, and browser name
#### Usage
...
...
...
...
This diff is collapsed.
Click to expand it.
tools/browser/sign-tag
+
12
−
2
View file @
15ee5d47
...
...
@@ -18,7 +18,9 @@ browser=$(echo "$script_name" | perl -pe 's/^[^\.]+\.//')
case
"
${
browser
}
"
in
basebrowser
|
torbrowser
|
mullvadbrowser
)
# go down to browser directory
pushd
${
script_dir
}
/
${
browser
}
>
/dev/null
browser_dir
=
"
$script_dir
/
$browser
"
[
-e
"
$browser_dir
"
]
||
ln
-s
"../../git_clones/firefox"
"
$browser_dir
"
pushd
"
$browser_dir
"
>
/dev/null
# and exit on script termination
trap
"popd > /dev/null"
EXIT
;;
...
...
@@ -33,7 +35,7 @@ esac
# and message
#
branch_name
=
$(
git
rev-parse
--abbrev-ref
HEAD
)
branch_name
=
$(
git
log
-n1
--oneline
--decorate
=
short |
grep
-Eo
'[a-z]+-browser-[1-9][0-9]+[^),]*-[1-9]'
|
head
-n1
)
if
[[
$branch_name
=
~ ^
([
a-z]+-browser
)
-
([
1-9][0-9]+
\.
[
0-9]+
)(
\.
[
0-9]+esr|a[1-9][0-9]
*
)
-
([
1-9][0-9]
*
\.
[
05]
)
-
([
1-9]
)
.
*
$
]]
;
then
project
=
"
${
BASH_REMATCH
[1]
}
"
upstream
=
"
${
BASH_REMATCH
[2]
}${
BASH_REMATCH
[3]
}
"
...
...
@@ -77,8 +79,10 @@ commit=$(git rev-parse --short ${3:-HEAD})
# channel validation
if
[[
"
${
project
}
"
==
"mullvad-browser"
]]
;
then
repo
=
"
$project
"
valid_channels
=(
"rapid"
"alpha"
"stable"
)
else
repo
=
"tor-browser"
valid_channels
=(
"rapid"
"alpha"
"stable"
"legacy"
)
fi
channel_valid
=
false
...
...
@@ -113,3 +117,9 @@ echo " tag: ${tag}"
echo
" message:
${
message
}
"
git tag
-s
"
${
tag
}
"
"
${
commit
}
"
-m
"
${
message
}
"
read
-p
"Do you want to push
${
tag
}
to
${
repo
}
.git? (y/N) "
-n
1
-r
echo
if
[[
$REPLY
=
~ ^[Yy]
$
]]
;
then
git push
"git@gitlab.torproject.org:tpo/applications/
${
repo
}
.git"
"
${
tag
}
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment