From: Dmitry Volyntsev Date: Fri, 9 Feb 2018 16:16:18 +0000 (+0300) Subject: Using hg archive to make dist. X-Git-Tag: 0.2.0~48 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=b7c94e3f862b08f6b9e65d3cd4749fc326ba4300;p=njs.git Using hg archive to make dist. --- diff --git a/Makefile b/Makefile index 3951ef56..e6d50875 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -NJS_VER = 0.1.15 - NXT_LIB = nxt -include $(NXT_LIB)/Makefile.conf @@ -100,12 +98,12 @@ clean: rm -f $(NXT_LIB)/Makefile.conf $(NXT_LIB)/nxt_auto_config.h dist: - make clean - mkdir njs-$(NJS_VER) - cp -rp configure Makefile LICENSE README CHANGES $(NXT_LIB) njs nginx \ - njs-$(NJS_VER) - tar czf njs-$(NJS_VER).tar.gz njs-$(NJS_VER) - rm -rf njs-$(NJS_VER) + NJS_VER=`grep NJS_VERSION njs/njscript.h | sed -e 's/.*"\(.*\)".*/\1/'`; \ + rm -rf njs-$${NJS_VER} \ + && hg archive njs-$${NJS_VER}.tar.gz \ + -p njs-$${NJS_VER} \ + -X ".hg*" \ + && echo njs-$${NJS_VER}.tar.gz done $(NXT_LIB)/nxt_auto_config.h: @echo diff --git a/njs/njscript.h b/njs/njscript.h index a76585a4..160cf9f3 100644 --- a/njs/njscript.h +++ b/njs/njscript.h @@ -7,6 +7,8 @@ #ifndef _NJSCRIPT_H_INCLUDED_ #define _NJSCRIPT_H_INCLUDED_ +#define NJS_VERSION "0.1.15" + typedef intptr_t njs_ret_t; typedef uintptr_t njs_index_t;