Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TouHou.FM
Client
fm.touhou.touhoufm
Commits
0e63b652
Verified
Commit
0e63b652
authored
Sep 14, 2020
by
Daniel Sonck
Browse files
Improve version counting
parent
c168c3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
generate-version.sh
View file @
0e63b652
#!/bin/bash
#!/bin/bash
VERSION_NAME
=
$(
git describe
--tags
|
sed
's!release/!!g'
)
VERSION_NAME
=
$(
git describe
--tags
|
sed
's!release/!!g'
)
VERSION_CODE
=
$((
$(
git
rev-list
--count
--first-parent
HEAD
)
-
12
))
VERSION_CODE
=
$((
$(
git
for
-each-ref
refs/tags/release |
wc
-l
)
+
47
))
cat
>
app/version.gradle
<<
VERSION_EOF
cat
>
app/version.gradle
<<
VERSION_EOF
ext {
ext {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment