From e7e9101efd0c1958f3f770abb0f2660d31a1c82d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 4 Jan 2013 00:29:30 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4679 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/Makefile | 3 +++ qla2x00t/Makefile | 3 +++ scst/Makefile | 3 +++ scst_local/Makefile | 3 +++ 4 files changed, 12 insertions(+) diff --git a/iscsi-scst/Makefile b/iscsi-scst/Makefile index 9b09855af..3393f9207 100644 --- a/iscsi-scst/Makefile +++ b/iscsi-scst/Makefile @@ -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 diff --git a/qla2x00t/Makefile b/qla2x00t/Makefile index d97bd2430..57a3477d8 100644 --- a/qla2x00t/Makefile +++ b/qla2x00t/Makefile @@ -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)" diff --git a/scst/Makefile b/scst/Makefile index 98977cc6f..3f1d1b64d 100644 --- a/scst/Makefile +++ b/scst/Makefile @@ -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" diff --git a/scst_local/Makefile b/scst_local/Makefile index 156aae5f2..e6024a8b0 100644 --- a/scst_local/Makefile +++ b/scst_local/Makefile @@ -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