Automate release archive generation

This patch makes it easier to generate the release archives that
can be downloaded from http://scst.sourceforge.net/downloads.html.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-01-04 00:29:30 +00:00
parent 59affce667
commit e7e9101efd
4 changed files with 12 additions and 0 deletions

View File

@@ -127,4 +127,7 @@ enable_proc:
grep "^#define CONFIG_SCST_PROC" $(INCDIR)/iscsi_scst_ver.h >/dev/null
rm $(INCDIR)/iscsi_scst_ver.h.aa
release-archive:
../scripts/generate-release-archive iscsi-scst "$$(sed -n 's/^#define[[:blank:]]ISCSI_VERSION_STRING[[:blank:]]*\"\([^\"]*\)\".*/\1/p' include/iscsi_scst_ver.h)"
.PHONY: all mods progs install clean extraclean 2release 2debug 2perf disable_proc enable_proc

View File

@@ -67,3 +67,6 @@ extraclean: clean
.PHONY: all tgt install uninstall clean extraclean
endif
release-archive:
../scripts/generate-release-archive qla2x00t "$$(sed -n 's/^#define[[:blank:]]Q2T_VERSION_STRING[[:blank:]]*\"\([^\"]*\)\".*/\1/p' qla2x00-target/qla2x00t.h)"

View File

@@ -54,6 +54,9 @@ disable_proc:
enable_proc:
cd $(SCST_DIR) && $(MAKE) $@
release-archive:
../scripts/generate-release-archive scst "$$(sed -n 's/^#define[[:blank:]]SCST_VERSION_NAME[[:blank:]]*\"\([^\"]*\)\".*/\1/p' include/scst_const.h)"
help:
@echo " all (the default) : make all"
@echo " clean : clean files"

View File

@@ -100,5 +100,8 @@ extraclean: clean
grep "^#EXTRA_CFLAGS += \-DCONFIG_SCST_DEBUG -g -fno-inline -fno-inline-functions" Makefile >/dev/null
rm Makefile.aa
release-archive:
../scripts/generate-release-archive scst_local "$$(sed -n 's/^#define[[:blank:]]SCST_LOCAL_VERSION[[:blank:]]*\"\([^\"]*\)\".*/\1/p' scst_local.c)"
.PHONY: all tgt install uninstall clean extraclean 2release 2debug 2perf