From fa717f818a3201e1c689f1c1fda724b45e7d8014 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Mon, 15 Sep 2014 08:11:34 +0400 Subject: [PATCH] =?UTF-8?q?support=20de=20la=20v=C3=A9rification=20du=20nu?= =?UTF-8?q?m=C3=A9ro=20de=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/.ulibver | 2 +- lib/ulib/ulib | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ulib/.ulibver b/lib/ulib/.ulibver index 4ba0555..ede2a67 100644 --- a/lib/ulib/.ulibver +++ b/lib/ulib/.ulibver @@ -1 +1 @@ -002001000 +002002000 diff --git a/lib/ulib/ulib b/lib/ulib/ulib index 0651450..4e5b577 100644 --- a/lib/ulib/ulib +++ b/lib/ulib/ulib @@ -186,3 +186,9 @@ function ulibver() { fi return 0 } + +function ulibver_require() { + ulibver "$@" && return 0 + eerror "Ce script nécessite ulib version${1:+" >= $1"}${2:+" < $2"}" + return 1 +}