mirror of
https://github.com/MatMoul/dokytree.git
synced 2024-12-23 08:06:11 +00:00
Update makerelease
This commit is contained in:
parent
e8ed39dedd
commit
aa63cce5e0
14
makerelease
14
makerelease
@ -13,8 +13,9 @@ if [ ! "${?}" = "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
declare BRANCH=""
|
||||||
read -p "Current branch is ${branch}. Continue ? (y/N)" choice
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
read -r -p "Current branch is ${BRANCH}. Continue ? (y/N)" choice
|
||||||
case "${choice}" in
|
case "${choice}" in
|
||||||
n|N|'' )
|
n|N|'' )
|
||||||
echo "Cancel !"
|
echo "Cancel !"
|
||||||
@ -31,16 +32,19 @@ esac
|
|||||||
|
|
||||||
# Ready to update :
|
# Ready to update :
|
||||||
|
|
||||||
version=${1}
|
declare VERSION
|
||||||
|
VERSION=${1}
|
||||||
|
|
||||||
git commit -a -m "Version ${version}"
|
sed -i 's/pkgver=.*/pkgver='"${VERSION}"'/' packaging/archlinux/dokytree/PKGBUILD
|
||||||
|
|
||||||
|
git commit -a -m "Version ${VERSION}"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
git checkout main
|
git checkout main
|
||||||
git merge dev
|
git merge dev
|
||||||
git push
|
git push
|
||||||
|
|
||||||
git tag -a "v${version}" -m "Version ${version}"
|
git tag -a "v${VERSION}" -m "Version ${VERSION}"
|
||||||
git push --tags
|
git push --tags
|
||||||
|
|
||||||
git checkout "${branch}"
|
git checkout "${branch}"
|
||||||
|
Loading…
Reference in New Issue
Block a user