mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-27 07:52:51 +08:00
11 lines
406 B
Bash
Executable File
11 lines
406 B
Bash
Executable File
#!/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" ]
|
|
[ "$make_version" = "$PKG_VERSION" ]
|
|
[ "$make_arch" = "$PKG_ARCH" ]
|