1
0
Fork 0
forked from murx/murx

Added -v and --version to show the program version. 1.0 today! :)

This commit is contained in:
Johannes Findeisen 2026-11-21 12:16:50 +01:00
commit c2e697b9f7
6 changed files with 45 additions and 20 deletions

View file

@ -40,6 +40,16 @@ pkgarch: pkgclean
makepkg
pkgsums:
@version=$$(sed -n 's/^#define MURX_VERSION "\([^"]*\)"$$/\1/p' murx.c); \
if [ -z "$$version" ]; then \
echo "Could not read MURX_VERSION from murx.c" >&2; exit 1; \
fi; \
tmp=$$(mktemp .pkgsums.XXXXXX) || exit 1; \
trap 'rm -f "$$tmp"' 0; \
for recipe in APKBUILD PKGBUILD; do \
sed "s/^pkgver=.*/pkgver=$$version/" "$$recipe" > "$$tmp" && \
cat "$$tmp" > "$$recipe" || exit 1; \
done
abuild checksum
updpkgsums