Add code
This commit is contained in:
parent
64ee5c60a6
commit
32c80d8b6f
5
fullupgrade
Executable file
5
fullupgrade
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
pacman -Rns "$(pacman -Qqtd)" --noconfirm
|
||||||
|
pacman -Sc --noconfirm
|
32
makerelease.sh
Executable file
32
makerelease.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
declare -r VERSION=${1}
|
||||||
|
declare -r MESSAGE=${2}
|
||||||
|
declare -r TAGBRANCH=main
|
||||||
|
declare CURRENTBRANCH=""
|
||||||
|
|
||||||
|
showHelp() {
|
||||||
|
echo makerelease version
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "${VERSION}" == "" ]; then
|
||||||
|
showHelp
|
||||||
|
echo ""
|
||||||
|
echo "no version provided!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENTBRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
|
if [ ! "${CURRENTBRANCH}" == "dev" ]; then
|
||||||
|
echo "You are not in dev branch!"
|
||||||
|
echo "Use dev branch to make a release!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout "${TAGBRANCH}"
|
||||||
|
git merge "${CURRENTBRANCH}"
|
||||||
|
git push
|
||||||
|
git tag -a "${VERSION}" -m "${MESSAGE}"
|
||||||
|
git push --tags
|
||||||
|
git checkout "${CURRENTBRANCH}"
|
Loading…
Reference in New Issue
Block a user