summarylogtreecommitdiffstats
path: root/refresh.sh
blob: 77a6a1fe43b1ad0b913ac284e09735ae09c38bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/bash

# Commands to make a new release
# Edit PKGBUILD to bump release

echo -ne "\tHave you bumped pkgrel in PKGBUILD? (Y/N) "
read YN
if [ "$YN" == "Y" ]
then
  makepkg --printsrcinfo > .SRCINFO
  git add PKGBUILD .SRCINFO
  if [ -n "$1" ]
  then
    echo -ne "\t\tcommitting..."
    git commit -m "$1"
    git push
    echo " done!"
  else
    echo -e "\tNo commit message provided"
  fi
else
  echo -e "\tDon't forget to add a commit message to this script!"
fi