ptrc-build: upgrade to 3
- squish echo+pub - unshorten buildrepo args - upgrade build root pre/post build
This commit is contained in:
parent
f03de4bfe8
commit
7a0792b4a1
2 changed files with 19 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
pkgname=ptrc-build
|
||||
pkgver=2
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
pkgdesc="build invoker for ptrcports"
|
||||
url="https://git.ddd.rip/ptrcnull/ptrcports"
|
||||
|
@ -17,6 +17,6 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
8e736a1f6665dd993af92c55c55dcf6d90bb3188127238763fa7236e83d4e8e58ee2fcdc9c4f8e4bb7aa3525c52746760cd52608ad94cc2d6c4f5bf6f86359f7 build
|
||||
cb2d925245063986bd1dbf8d3740d8ea614edfcddece7cecf535dcc028c68e292c3d2f5c0e34a8fc65a44e4bd7c5b434bb74d6cc7ac943d062422c9c5493a646 build
|
||||
4f2108baab8c1882a6d3754bf24dd1e889074d6a5876ebaf43a46ac8cba696c9329579eb3774a15bd73b8eb9870a16b79940b1f4ff281eb257376ef0bf044d70 ptrc-build.conf
|
||||
"
|
||||
|
|
|
@ -18,21 +18,30 @@ pub() {
|
|||
-m "$1"
|
||||
}
|
||||
|
||||
echo "pulling git"
|
||||
pub "pulling git"
|
||||
echopub() {
|
||||
echo "$1"
|
||||
pub "$1"
|
||||
}
|
||||
|
||||
echopub "pulling git"
|
||||
cd "$HOME/ptrcports"
|
||||
git fetch --all
|
||||
git reset --hard origin/master
|
||||
|
||||
echopub "running pre-upgrade"
|
||||
doas apk upgrade -Ua
|
||||
|
||||
echopub "building"
|
||||
nice -n 10 buildrepo \
|
||||
-a "$HOME" \
|
||||
-d /var/www/repo.ptrc.pl \
|
||||
-l "$HOME/logs" \
|
||||
-p ptrcports | while read -r line; do
|
||||
--aports "$HOME" \
|
||||
--destdir /var/www/repo.ptrc.pl \
|
||||
--logdir "$HOME/logs" \
|
||||
--purge ptrcports | while read -r line; do
|
||||
echo "$line"
|
||||
echo "$line" | grep -q 'ptrcports/' && pub "$line"
|
||||
done
|
||||
|
||||
echo "idle"
|
||||
pub "idle"
|
||||
echopub "running post-upgrade"
|
||||
doas apk upgrade -Ua
|
||||
|
||||
echopub "idle"
|
||||
|
|
Loading…
Reference in a new issue