changeset 4869:9ebb98431899

* src/x264.mk: update update rule
author John Donoghue
date Tue, 30 Oct 2018 13:44:15 -0400
parents 07817ebc1abc
children 9b6a3d01d7ee
files src/x264.mk
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/x264.mk	Tue Oct 30 13:44:12 2018 -0400
+++ b/src/x264.mk	Tue Oct 30 13:44:15 2018 -0400
@@ -11,7 +11,10 @@
 $(PKG)_DEPS     :=
 
 define $(PKG)_UPDATE
-    date -d yesterday +%Y%m%d-2245
+    $(WGET) -q -O- 'https://git.videolan.org/?p=x264.git;a=shortlog' | \
+    $(SED) -n 's,.*\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\).*,\1\2\3-2245,p' | \
+    $(SORT) | \
+    tail -1
 endef
 
 ifeq ($(MXE_NATIVE_BUILD),no)