File: reproducible

package info (click to toggle)
ocamlweb 1.41-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 800 kB
  • sloc: ml: 5,771; sh: 1,756; makefile: 214
file content (24 lines) | stat: -rw-r--r-- 665 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
Author: Chris Lamb <lamby@debian.org>
Description: make the build reproducible

Index: ocamlweb/Makefile.in
===================================================================
--- ocamlweb.orig/Makefile.in	2019-02-11 08:37:15.980746531 +0100
+++ ocamlweb/Makefile.in	2019-02-11 08:37:15.976746514 +0100
@@ -21,6 +21,7 @@
 MAJORVN=1
 MINORVN=41
 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)