diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index dc1e538..a53ff89 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -129,7 +129,11 @@ clean: # clean jnaerator stuff $(RM) _jnaerator.* java/miniupnpc_$(OS).jar -install: $(FILESTOINSTALL) +updateversion: miniupnpc.h + cp miniupnpc.h miniupnpc.h.bak + sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h + +install: updateversion $(FILESTOINSTALL) $(INSTALL) -d $(INSTALLDIRINC) $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC) $(INSTALL) -d $(INSTALLDIRLIB) diff --git a/miniupnpc/miniupnpc.h b/miniupnpc/miniupnpc.h index c8211e8..6a7eb56 100644 --- a/miniupnpc/miniupnpc.h +++ b/miniupnpc/miniupnpc.h @@ -1,4 +1,4 @@ -/* $Id: miniupnpc.h,v 1.24 2011/09/12 09:52:02 nanard Exp $ */ +/* $Id: miniupnpc.h,v 1.25 2011/10/09 16:17:29 nanard Exp $ */ /* Project: miniupnp * http://miniupnp.free.fr/ * Author: Thomas Bernard @@ -17,6 +17,10 @@ #define UPNPDISCOVER_SOCKET_ERROR (-101) #define UPNPDISCOVER_MEMORY_ERROR (-102) +/* versions : */ +#define MINIUPNPC_VERSION "1.6" +#define MINIUPNPC_API_VERSION 8 + #ifdef __cplusplus extern "C" { #endif