-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.autorun
32 lines (30 loc) · 853 Bytes
/
.autorun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
if [ ! -d .venv ]
then
echo -e "\x1b[0;31mYou need an environment setup...\x1b[0m"
python3.10 -m venv .venv
source .venv/bin/activate
python3.10 -m pip install --upgrade pip
python3.10 -m pip install -r requirements.txt
echo -e "\x1b[0;33mthere, its all done\x1b[0m"
elif [ -z "$VIRTUAL_ENV" ]
then
echo -e "\x1b[0;33m Missing that environment, starting it now...\x1b[0m"
source .venv/bin/activate
echo -e "\x1b[1;35m Downloading updates to the repo sir...\x1b[0m"
fi
function git-tag() {
if [ $# -lt 1 ]
then
echo "<tag>"
echo "v1.2.3"
else
sed -i '' "s/version [0-9]\.[0-9]\.[0-9]/version $1/" src/view/settings_app.php
gitchangelog >| CHANGELOG.md
git add .
git commit -m "doc: change log for tag $1"
git push
git tag $1
git push origin --tag
fi
}