aboutsummaryrefslogtreecommitdiff
path: root/auto-void-packages/update-git-repo.sh
blob: e71701cfd0604794b9297502b460621f91687474 (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
#!/usr/bin/env bash

echo_n_notify(){
	echo "$1" && notify-send "$1"
}

pushd "$HOME/workbench/void-packages" || exit 1
CHECKOUT="checkout"
FETCH="fetch"
MERGE="merge"
PUSH="push"

git checkout master && \
	echo_n_notify "$CHECKOUT: ok" && \
	git fetch upstream && \
	echo_n_notify "$FETCH: ok" && \
	git merge upstream/master && \
	echo_n_notify "$MERGE: ok" && \
	git push && \
	echo_n_notify "$PUSH: ok"

./xbps-src bootstrap-update

popd || exit 1