mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 10:28:00 +08:00
Update Makefile
This commit is contained in:
1 parent
a10f0b8ccf
commit
d97dc35e3d
1 file changed
+1
-1
@@ -71,7 +71,7 @@ TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh)
|
|||||||
|
|
||||||
# $(1) = OpenWrt dependent PKG_NAME
|
# $(1) = OpenWrt dependent PKG_NAME
|
||||||
define EnsureVendoredVersion
|
define EnsureVendoredVersion
|
||||||
DEP_VER=$$$$( grep --only-matching --perl-regexp '(?<=PKG_VERSION:=)(.*)' "../$(1)/Makefile" ); \
|
DEP_VER=$$$$( grep --only-matching --perl-regexp '(?<=PKG_VERSION:=)(.*)' "../../packages/utils/$(1)/Makefile" ); \
|
||||||
VEN_VER=$$$$( grep --only-matching --perl-regexp '(?<=$(call toupper,$(1))_VERSION=v)(.*)' "$(PKG_BUILD_DIR)/Dockerfile" ); \
|
VEN_VER=$$$$( grep --only-matching --perl-regexp '(?<=$(call toupper,$(1))_VERSION=v)(.*)' "$(PKG_BUILD_DIR)/Dockerfile" ); \
|
||||||
if [ "$$$${VEN_VER}" != "$$$${DEP_VER}" ]; then \
|
if [ "$$$${VEN_VER}" != "$$$${DEP_VER}" ]; then \
|
||||||
echo "ERROR: $(PKG_NAME) Expected 'PKG_VERSION:=$$$${VEN_VER}' in '$(1)', found 'PKG_VERSION:=$$$${DEP_VER}'"; \
|
echo "ERROR: $(PKG_NAME) Expected 'PKG_VERSION:=$$$${VEN_VER}' in '$(1)', found 'PKG_VERSION:=$$$${DEP_VER}'"; \
|
||||||
|
|||||||
Reference in new issue
Block a user