Package: ocamlweb / 1.39-5

reproducible Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Chris Lamb <lamby@debian.org>
Description: make the build reproducable

--- a/Makefile.in
+++ b/Makefile.in
@@ -21,6 +21,7 @@
 MAJORVN=1
 MINORVN=39
 VERSION=$(MAJORVN).$(MINORVN)
+BUILD_DATE="$(shell date)"
 
 OCAMLBEST=@OCAMLBEST@
 
@@ -75,7 +76,7 @@
 
 version.ml: Makefile
 	echo "let version = \""$(VERSION)"\"" > version.ml
-	echo "let date = \""`date`"\"" >> version.ml
+	echo "let date = \""$(BUILD_DATE)"\"" >> version.ml
 
 install-indep:
 	mkdir -p $(BINDIR)