Skip to content

Commit 9a882e9

Browse files
zehasorah
authored andcommitted
rdoc: build reproducible documentation
- sort input filenames - provide a fixed timestamp to the gzip compression Signed-off-by: Antonio Terceiro <[email protected]> Signed-off-by: Christian Hofstaedtler <[email protected]> Gbp-Pq: Name rdoc-build-reproducible-documentation.patch
1 parent 057a6cc commit 9a882e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/generator/json_index.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def generate_gzipped
176176
debug_msg "Writing gzipped search index to %s" % outfile
177177

178178
Zlib::GzipWriter.open(outfile) do |gz|
179-
gz.mtime = File.mtime(search_index_file)
179+
gz.mtime = -1
180180
gz.orig_name = search_index_file.basename.to_s
181181
gz.write search_index
182182
gz.close
@@ -194,7 +194,7 @@ def generate_gzipped
194194
debug_msg "Writing gzipped file to %s" % outfile
195195

196196
Zlib::GzipWriter.open(outfile) do |gz|
197-
gz.mtime = File.mtime(dest)
197+
gz.mtime = -1
198198
gz.orig_name = dest.basename.to_s
199199
gz.write data
200200
gz.close

0 commit comments

Comments
 (0)