瀏覽代碼

- tar & release name change if tls is included

Andrei Pelinescu-Onciul 22 年之前
父節點
當前提交
346c7dab55
共有 3 個文件被更改,包括 15 次插入2 次删除
  1. 10 2
      Makefile
  2. 3 0
      Makefile.defs
  3. 2 0
      TODO

+ 10 - 2
Makefile

@@ -107,7 +107,11 @@ export PREFIX LOCALBASE
 #export INSTALL INSTALL-CFG INSTALL-BIN INSTALL-MODULES INSTALL-DOC INSTALL-MAN 
 #export INSTALL INSTALL-CFG INSTALL-BIN INSTALL-MODULES INSTALL-DOC INSTALL-MAN 
 #export INSTALL-TOUCH
 #export INSTALL-TOUCH
 
 
-
+ifneq ($(TLS),)
+	tar_extra_args+=
+else
+	tar_extra_args+=--exclude=$(notdir $(CURDIR))/tls* 
+endif
 # include the common rules
 # include the common rules
 include Makefile.rules
 include Makefile.rules
 
 
@@ -162,9 +166,9 @@ tar:
 		--exclude=$(notdir $(CURDIR))/test* \
 		--exclude=$(notdir $(CURDIR))/test* \
 		--exclude=$(notdir $(CURDIR))/tmp* \
 		--exclude=$(notdir $(CURDIR))/tmp* \
 		--exclude=$(notdir $(CURDIR))/debian/ser* \
 		--exclude=$(notdir $(CURDIR))/debian/ser* \
-		--exclude=$(notdir $(CURDIR))/tls* \
 		--exclude=$(notdir $(CURDIR))/ser_tls* \
 		--exclude=$(notdir $(CURDIR))/ser_tls* \
 		--exclude=CVS* \
 		--exclude=CVS* \
+		--exclude=.cvsignore \
 		--exclude=*.[do] \
 		--exclude=*.[do] \
 		--exclude=*.so \
 		--exclude=*.so \
 		--exclude=*.il \
 		--exclude=*.il \
@@ -172,6 +176,10 @@ tar:
 		--exclude=*.gz \
 		--exclude=*.gz \
 		--exclude=*.bz2 \
 		--exclude=*.bz2 \
 		--exclude=*.tar \
 		--exclude=*.tar \
+		--exclude=*.patch \
+		--exclude=.\#* \
+		--exclude=*.swp \
+		${tar_extra_args} \
 		-cf - $(notdir $(CURDIR)) | \
 		-cf - $(notdir $(CURDIR)) | \
 			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
 			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
 			    cd tmp/_tar1; $(TAR) -xf - ) && \
 			    cd tmp/_tar1; $(TAR) -xf - ) && \

+ 3 - 0
Makefile.defs

@@ -49,6 +49,9 @@ ARCH = $(shell uname -m |sed -e s/i.86/i386/ -e s/sun4u/sparc64/  \
 
 
 # TLS support
 # TLS support
 TLS ?=
 TLS ?=
+ifneq ($(TLS),)
+	RELEASE:=$(RELEASE)-tls
+endif
 # extra CC command line options (e.g  -march=athlon-mp)
 # extra CC command line options (e.g  -march=athlon-mp)
 CC_EXTRA_OPTS ?=
 CC_EXTRA_OPTS ?=
  # install location
  # install location

+ 2 - 0
TODO

@@ -2,6 +2,8 @@ $Id$
 
 
 ( - todo, x - done)
 ( - todo, x - done)
 
 
+- WARNING: tm fr_timer fixup is not in HEAD (should it be? is it the
+ rigth fix?)
 x update AUTHORS, debian/copyright, ser.8, ser.cfg.5 from stable
 x update AUTHORS, debian/copyright, ser.8, ser.cfg.5 from stable
 x update Makefile*  from stable
 x update Makefile*  from stable
 x update all package specs from stable
 x update all package specs from stable