File: dont-require-git.patch

package info (click to toggle)
tj3 3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,048 kB
  • sloc: ruby: 36,481; javascript: 1,113; sh: 19; makefile: 17
file content (54 lines) | stat: -rw-r--r-- 2,095 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: Vincent Bernat <bernat@debian.org>
Date: Sat, 25 Jan 2025 07:21:29 +0100
Subject: do not require git to find files

---
 taskjuggler.gemspec | 16 ++++++++--------
 tasks/rdoc.rake     |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/taskjuggler.gemspec b/taskjuggler.gemspec
index 7571fd3..89081e2 100644
--- a/taskjuggler.gemspec
+++ b/taskjuggler.gemspec
@@ -45,19 +45,19 @@ management.
 EOT
   s.license = 'GPL-2.0'
   s.require_path = 'lib'
-  s.files = (`git ls-files -- lib`).split("\n") +
-            (`git ls-files -- data`).split("\n") +
-            (`git ls-files -- manual`).split("\n") +
-            (`git ls-files -- examples`).split("\n") +
-            (`git ls-files -- tasks`).split("\n") +
+  s.files = (`find lib -type f`).split("\n") +
+            (`find data -type f`).split("\n") +
+            (`find manual -type f`).split("\n") +
+            (`find examples -type f`).split("\n") +
+            (`find tasks -type f`).split("\n") +
             %w( .gemtest taskjuggler.gemspec Rakefile ) +
             # Generated files, not contained in Git repository.
             %w( data/tjp.vim ) + Dir.glob('manual/html/**/*') + Dir.glob('man/*.1')
   s.bindir = 'bin'
-  s.executables = (`git ls-files -- bin`).split("\n").
+  s.executables = (`find bin -type f`).split("\n").
                   map { |fn| File.basename(fn) }
-  s.test_files = (`git ls-files -- test`).split("\n") +
-                 (`git ls-files -- spec`).split("\n")
+  s.test_files = (`find test -type f`).split("\n") +
+                 (`find spec -type f`).split("\n")
 
   s.extra_rdoc_files = %w( README.rdoc COPYING CHANGELOG )
 
diff --git a/tasks/rdoc.rake b/tasks/rdoc.rake
index df673ed..a6efbde 100644
--- a/tasks/rdoc.rake
+++ b/tasks/rdoc.rake
@@ -7,7 +7,7 @@
 # RDOC TASK
 Rake::RDocTask.new(:rdoc) do |t|
   t.rdoc_files = %w( README.rdoc COPYING CHANGELOG ) +
-                 `git ls-files -- lib`.split("\n")
+                 `find lib -type f`.split("\n")
   t.title = "TaskJuggler API documentation"
   t.main = 'README.rdoc'
   t.rdoc_dir = 'doc'