Skip to content
Snippets Groups Projects
Commit 15075ad2 authored by Enrico Tassi's avatar Enrico Tassi
Browse files

build of lua-ldoc and packages using it made reproducible

parent 06da063d
No related branches found
Tags debian/1.4.3-3
No related merge requests found
lua-ldoc (1.4.3-3) unstable; urgency=medium
* Pass -d to txt2man to make the build reproducible
* Patch: add support to date overriding via --date to help
reproducible builds
-- Enrico Tassi <gareuselesinge@debian.org> Tue, 18 Aug 2015 11:06:49 +0200
lua-ldoc (1.4.3-2) unstable; urgency=medium
* Patch: close missing bracket in template file
......
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Tue, 18 Aug 2015 11:18:01 +0200
Subject: make system date override-able via --date
---
ldoc.lua | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ldoc.lua b/ldoc.lua
index 3454bcf..3af3b2b 100644
--- a/ldoc.lua
+++ b/ldoc.lua
@@ -61,6 +61,7 @@ ldoc, a documentation generator for Lua, vs 1.4.3
-M,--merge allow module merging
-S,--simple no return or params, no summary
-O,--one one-column output layout
+ --date (default system) use this date in generated doc
--dump debug output dump
--filter (default none) filter output as Lua data (e.g pl.pretty.dump)
--tags (default none) show all references to given tags, comma-separated
@@ -781,7 +782,11 @@ ldoc.modules = module_list
ldoc.title = ldoc.title or args.title
ldoc.project = ldoc.project or args.project
ldoc.package = args.package:match '%a+' and args.package or nil
+if args.date == 'system' then
ldoc.updatetime = os.date("%Y-%m-%d %H:%M:%S")
+else
+ldoc.updatetime = args.date
+end
local html = require 'ldoc.html'
0001-Fix-the-interpreter-to-lua5.2-since-lua-may-be-lua50.patch
0002-Remove-non-existing-one-1.md-from-tests-config.ld.patch
0003-Fix-broken-template-missing-closing-bracket.patch
0004-make-system-date-override-able-via-date.patch
......@@ -12,7 +12,8 @@ override_dh_auto_install:
mv out/ html
override_dh_installman:
txt2man -v "" -r "ldoc" -t "ldoc 1" debian/ldoc.1.txt > debian/ldoc.1
txt2man -d "`dpkg-parsechangelog -S date`"\
-v "" -r "ldoc" -t "ldoc 1" debian/ldoc.1.txt > debian/ldoc.1
dh_installman
override_dh_auto_clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment