From: Bastian Dehn Date: Wed, 13 May 2026 16:00:35 +0000 (+0200) Subject: add build command readme for reproducible build X-Git-Tag: v1.1.5^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2e527f2f0fcf1069a5f1038eb1413caee86e883d;p=scantopdf.git add build command readme for reproducible build --- diff --git a/Makefile b/Makefile index 080235e..f0057ba 100644 --- a/Makefile +++ b/Makefile @@ -116,4 +116,5 @@ $(BUILDDIR)/$(PACKAGENAME).deb: \ $(PACKAGEDIR)/DEBIAN/control mkdir -p $(@D) + umask 0022 cd build && dpkg-deb --build --root-owner-group $(PACKAGENAME) \ No newline at end of file diff --git a/readme.md b/readme.md index 4b2b3b0..20d74ea 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,13 @@ it can scan many pages with cut page into multiple pdfs. - scantopdfgray - scan into gray pdf - scantopdfbw - scan into black and white pdf +## Build + +``` +export SOURCE_DATE_EPOCH=$(git log --max-count=1 --pretty='%ct') +make +``` + ## Usage scan 5 pages into one pdf `test.pdf`