[packages/cvs-fast-export] env hack to be able to disable .gitignore generation

glen glen at pld-linux.org
Thu Oct 13 20:22:50 CEST 2016


commit ea069dbee87aef7fe8749d026b73f310223841cb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Oct 13 21:21:08 2016 +0300

    env hack to be able to disable .gitignore generation

 cvs-fast-export.spec         |  2 ++
 hack-disable-cvsignore.patch | 16 ++++++++++++++++
 2 files changed, 18 insertions(+)
---
diff --git a/cvs-fast-export.spec b/cvs-fast-export.spec
index 9e5f1b9..0fba5e5 100644
--- a/cvs-fast-export.spec
+++ b/cvs-fast-export.spec
@@ -11,6 +11,7 @@ License:	GPL v2
 Group:		Development/Version Control
 Source0:	http://www.catb.org/~esr/cvs-fast-export/%{name}-%{version}.tar.gz
 # Source0-md5:	7bc950e2853df9736c638226df1bd79e
+Patch0:		hack-disable-cvsignore.patch
 URL:		http://www.catb.org/~esr/cvs-fast-export/
 BuildRequires:	asciidoc
 BuildRequires:	sed >= 4.0
@@ -45,6 +46,7 @@ ze zdalnych serwerów CVS.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' cvsconvert cvsreduce
 
diff --git a/hack-disable-cvsignore.patch b/hack-disable-cvsignore.patch
new file mode 100644
index 0000000..44b4970
--- /dev/null
+++ b/hack-disable-cvsignore.patch
@@ -0,0 +1,16 @@
+
+allow disabling .gitignore generation via env
+
+--- cvs-fast-export-1.40/export.c~	2015-11-21 23:16:26.000000000 +0200
++++ cvs-fast-export-1.40/export.c	2016-10-13 21:10:26.557838474 +0300
+@@ -491,8 +491,10 @@
+ 	}
+ 	if (need_ignores) {
+ 	    need_ignores = false;
++	    if (!getenv("DISABLE_GITIGNORE")) {
+ 	    printf("M 100644 inline .gitignore\ndata %zd\n%s\n",
+ 		   sizeof(CVS_IGNORES)-1, CVS_IGNORES);
++	    }
+ 	}
+ 	if (revpairs != NULL && strlen(revpairs) > 0)
+ 	{
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cvs-fast-export.git/commitdiff/ea069dbee87aef7fe8749d026b73f310223841cb



More information about the pld-cvs-commit mailing list