summarylogtreecommitdiffstats
path: root/update.sh
blob: db350a22d7d9955cb386e193c0a6a52cd7ca930d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

ROOT_DIR="${HOME}/packaging/AUR/joplin-appimage"

if [[ ! -d "${ROOT_DIR}" ]]; then
	mkdir -p "${ROOT_DIR}"
fi

cd "${ROOT_DIR}"

package_version=$(grep "^pkgver" PKGBUILD | cut -d '=' -f 2)
package_release=$(grep "^pkgrel" PKGBUILD | cut -d '=' -f 2)

makepkg --printsrcinfo > .SRCINFO && git commit -am "Update to v. ${package_version}-${package_release}" && git push origin master