mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
ib_srpt: Add "make release-archive" target in Makefile
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -115,4 +115,7 @@ extraclean: clean
|
||||
-$(MAKE) clean
|
||||
$(call set_var,build_mode,BUILDMODE,PERF)
|
||||
|
||||
release-archive:
|
||||
@version="$$(sed -n 's/^#define DRV_VERSION[ ]*\"\([0-9.]*\).*/\1/p' src/ib_srpt.c)"; patch -sp0 <release-archive.patch && tar --owner=root --group=root --transform="s|^|srpt-$$version/|" -cjf srpt-$$version.tar.bz2 $$(svn status -v -q | cut -c11- | while read rev1 rev2 user path; do [ -d "$$path" ] || echo "$$path"; done) && patch -Rsp0 <release-archive.patch && ls -l srpt-$$version.tar.bz2
|
||||
|
||||
.PHONY: all install clean extraclean 2debug 2release 2perf
|
||||
|
||||
11
srpt/release-archive.patch
Normal file
11
srpt/release-archive.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
Index: src/Makefile
|
||||
===================================================================
|
||||
--- src/Makefile (revision 4033)
|
||||
+++ src/Makefile (working copy)
|
||||
@@ -1,6 +1,3 @@
|
||||
-SCST_INC_DIR := $(SUBDIRS)/../../scst/include/
|
||||
-EXTRA_CFLAGS += -I$(SCST_INC_DIR)
|
||||
-
|
||||
-include $(SUBDIRS)/../build_mode
|
||||
|
||||
SRPTFLAGS = -DCONFIG_SCST_TRACING -DCONFIG_SCST_DEBUG \
|
||||
Reference in New Issue
Block a user