summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-24 12:59:42 +0200
committerEgor Tensin <egor@tensin.name>2026-06-24 12:59:42 +0200
commitfeaf5763de782bf422ff82129d0db3ce58bb806e (patch)
tree176edb24c77b9449db285bc858ae7a44493a6963
parentMakefile: use --noconfirm for makepkg (diff)
downloadlinux-status-feaf5763de782bf422ff82129d0db3ce58bb806e.tar.gz
linux-status-feaf5763de782bf422ff82129d0db3ce58bb806e.zip
Makefile: add more visual hints
-rw-r--r--Makefile13
-rw-r--r--README.Arch6
2 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a2fc253..80ac838 100644
--- a/Makefile
+++ b/Makefile
@@ -7,25 +7,35 @@ all: build
.PHONY: build
build:
+ @echo '======================================================= Build ==='
makepkg --clean --cleanbuild --force --noconfirm --noprogressbar --syncdeps
makepkg --printsrcinfo > .SRCINFO
+ @echo '================================================================='
.PHONY: commit
commit:
+ @echo '====================================================== Commit ==='
git add .SRCINFO
- source ./PKGBUILD && git commit -am "aur: $$pkgver-$$pkgrel"
+ source ./PKGBUILD && git commit -m "aur: $$pkgver-$$pkgrel"
+ @echo '================================================================='
.PHONY: push
push:
+ @echo '================================================= Push to AUR ==='
git push 'ssh://aur@aur.archlinux.org/$(call escape,$(PKG_NAME)).git' "$$( git symbolic-ref HEAD ):master"
+ @echo '============================================ Push to upstream ==='
+ git push
+ @echo '================================================================='
.PHONY: pkgver
pkgver:
@git fetch && \
new_pkgver="$$( git describe --tags --abbrev=0 origin/master | sed 's/^v//' )" && \
source PKGBUILD && \
+ echo '================================================ Check pkgver ===' && \
echo "Current pkgver: $$pkgver" && \
echo "New pkgver: $$new_pkgver" && \
+ echo '=================================================================' && \
if [ "$$pkgver" != "$$new_pkgver" ]; then \
sed -i -e "s/^pkgver=.*/pkgver=$$new_pkgver/" PKGBUILD && \
sed -i -e "s/^pkgrel=.*/pkgrel=1/" PKGBUILD ; \
@@ -40,7 +50,6 @@ maintenance: pkgver
true; \
elif [ "$$git_status" = $$' M .SRCINFO\n M PKGBUILD' ]; then \
$(MAKE) commit && \
- git push -q && \
$(MAKE) push ; \
else \
echo; \
diff --git a/README.Arch b/README.Arch
index 6984ec5..9f294bf 100644
--- a/README.Arch
+++ b/README.Arch
@@ -16,10 +16,6 @@ There're a bunch of useful one-liners in Makefile.
make commit
- * Push to the AUR repository:
+ * Push to the AUR repository & the upstream:
make push
-
- * Push to upstream:
-
- git push