Move the version from Makefile to resolvconf.in
authorRoy Marples <roy@marples.name>
Fri, 11 Mar 2016 20:00:44 +0000 (20:00 +0000)
committerRoy Marples <roy@marples.name>
Fri, 11 Mar 2016 20:00:44 +0000 (20:00 +0000)
Makefile
resolvconf.in

index 5c1f8cab4bf54818a4da679644a41d886d2ca6df..e23d5b7084211d7e233b5296e6bd528489591d0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
 PKG=           openresolv
-VERSION=       3.8.0
 
 # Nasty hack so that make clean works without configure being run
 _CONFIG_MK!=   test -e config.mk && echo config.mk || echo config-null.mk
@@ -14,6 +13,8 @@ VARDIR?=      /var/run/resolvconf
 INSTALL?=      install
 SED?=          sed
 
+VERSION!=      ${SED} -n 's/OPENRESOLV_VERSION="\(.*\)".*/\1/p' resolvconf.in
+
 BINMODE?=      0755
 DOCMODE?=      0644
 MANMODE?=      0444
index 6b76af8ddebf9ed658f703d3dede675d0608b5e7..4c956ebb821505f4a207f5cf8486ae6e1d19a976 100644 (file)
@@ -25,6 +25,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 RESOLVCONF="$0"
+OPENRESOLV_VERSION="3.8.0"
 SYSCONFDIR=@SYSCONFDIR@
 LIBEXECDIR=@LIBEXECDIR@
 VARDIR=@VARDIR@