Update script: get last version from script
This commit is contained in:
parent
7cb1281a46
commit
52700a7593
2 changed files with 9 additions and 3 deletions
|
@ -92,6 +92,11 @@ To update the version follow the following steps (the old version is here 15.0.1
|
|||
|
||||
16. Create new pull request
|
||||
|
||||
### Automatically do steps 2 to 12
|
||||
|
||||
Run `./update-new-version.sh "$new-version"`
|
||||
|
||||
Where `$new-version` is in the format `[year].[major].[minor]`.
|
||||
|
||||
### Setting up the build environment
|
||||
|
||||
|
|
|
@ -6,8 +6,9 @@ PACKAGE="intellij-idea-ultimate"
|
|||
DISTRIBUTION="disco"
|
||||
|
||||
main() {
|
||||
old="$1"
|
||||
new="$2"
|
||||
last_tag=$(git describe --abbrev=0 --tags)
|
||||
old="${last_tag#?}"
|
||||
new="$1"
|
||||
name="$(git config --get user.name)"
|
||||
email="$(git config --get user.email)"
|
||||
|
||||
|
@ -36,4 +37,4 @@ main() {
|
|||
# sudo dpkg -i "$PACKAGE"_"$new"-1_all.deb
|
||||
}
|
||||
|
||||
main "$1" "$2"
|
||||
main "$1"
|
||||
|
|
Loading…
Reference in a new issue