diff options
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | include/autoconf.make.in | 1 |
3 files changed, 18 insertions, 1 deletions
@@ -49,7 +49,7 @@ endef endif -.PHONY: all clean install tags cscope .FORCE-TSNIF-CFLAGS +.PHONY: all clean install release snapshot package tags cscope .FORCE-TSNIF-CFLAGS all:: @@ -81,6 +81,21 @@ clean:: mrproper:: git clean -xdf +snapshot: + @$(MAKE) $(PRINT_DIR) package PKG_VER=$(CONFIG_TSNIF_VER)-`date "+%m%d%Y"` + +release: + @$(MAKE) $(PRINT_DIR) package PKG_VER=$(CONFIG_TSNIF_VER) + +package: + $(QUIET_PKG)rm -f tsnif-$(PKG_VER); ln -s . tsnif-$(PKG_VER); \ + echo "tsnif-$(PKG_VER)"; \ + for i in `find . -type f | cut -c 3- | grep -v git`; do \ + git checkout $$i > /dev/null 2>&1; \ + if [ x"$$?" == x"0" ]; then \ + echo "tsnif-$(PKG_VER)/$$i"; \ + fi; \ + done | tar cjvf tsnif-$(PKG_VER).tar.bz2 -T- > /dev/null 2>&1 # dependencies # The gcc -M depedencies generation needs to repaired to include diff --git a/configure.ac b/configure.ac index af507ed..573063f 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,7 @@ AC_ARG_WITH([kinc], [kinc=./include]) AC_SUBST(CONFIG_TSNIF_KINC, "$kinc") +AC_SUBST(CONFIG_TSNIF_VER, "AC_PACKAGE_VERSION") AC_DEFINE(CONFIG_TSNIF_VER, "AC_PACKAGE_VERSION") AC_CONFIG_FILES([include/autoconf.make]) diff --git a/include/autoconf.make.in b/include/autoconf.make.in index 6cbfeb6..b209a46 100644 --- a/include/autoconf.make.in +++ b/include/autoconf.make.in @@ -17,3 +17,4 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ CONFIG_TSNIF_KINC = @CONFIG_TSNIF_KINC@ +CONFIG_TSNIF_VER = @CONFIG_TSNIF_VER@ |