mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 20:05:13 +08:00
🤞 Sync 2026-09-27 22:16:29
This commit is contained in:
1 parent
8ede4a8320
commit
618f51e9dc
459 files changed
+44817
-2191
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
root="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
|
||||
. "$root/release.env"
|
||||
|
||||
make_name="$(sed -n 's/^PKG_NAME:=//p' "$root/Makefile" | head -n 1)"
|
||||
make_version="$(sed -n 's/^PKG_VERSION:=//p' "$root/Makefile" | head -n 1)"
|
||||
make_arch="$(sed -n 's/^PKGARCH:=//p' "$root/Makefile" | head -n 1)"
|
||||
|
||||
[ "$make_name" = "$PKG_NAME" ] || {
|
||||
printf 'package name mismatch: %s != %s\n' "$make_name" "$PKG_NAME" >&2
|
||||
exit 1
|
||||
}
|
||||
[ "$make_version" = "$PKG_VERSION" ] || {
|
||||
printf 'package version mismatch: %s != %s\n' "$make_version" "$PKG_VERSION" >&2
|
||||
exit 1
|
||||
}
|
||||
[ "$make_arch" = "$PKG_ARCH" ] || {
|
||||
printf 'package architecture mismatch: %s != %s\n' "$make_arch" "$PKG_ARCH" >&2
|
||||
exit 1
|
||||
}
|
||||
Reference in new issue
Block a user