blob: 04a815a4a87406e48b680152d4d71388864aec50 (
plain)
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
|
#!/usr/bin/env sh
# update
#
# Muh very basic script for updating
# to avoid typing the same stuff
#
# Don't mind if I later set up a CI/CD environment
# just to deploy to the AUR lmao
#
if [ -n "$(git status --porcelain)" ]; then
printf "Working directory NOT clean - exiting\n"
exit 1
fi
makepkg -CcLfs
makepkg --printsrcinfo > ".SRCINFO"
# adding everything is safe because we ignore
# all files by default in '.gitignore'
git add .
if git commit -m "Update"; then
git show HEAD
printf "\n push changes when you're ready:\n"
printf "git push\n"
fi
|