From 9f925e118d59c0a39f6dc680bf1babe03a0b1768 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 22 May 2008 15:27:52 +0200 Subject: [PATCH] Embed commit hash in the compiled Perl script --- dowkd.compile | 1 + dowkd.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dowkd.compile b/dowkd.compile index 301b5a8..068b2cd 100644 --- a/dowkd.compile +++ b/dowkd.compile @@ -3,6 +3,7 @@ set -e sed -e s/@PROGRAM_VERSION@/$(git describe)/ \ + -e s/@PROGRAM_SHA1@/$(git rev-parse HEAD)/ \ -e s/@DB_VERSION@/$(cat dowkd.blacklist.md5)/ \ < dowkd.in | \ sed -e '/^@CHANGELOG@$/{ diff --git a/dowkd.in b/dowkd.in index 1739568..c150834 100644 --- a/dowkd.in +++ b/dowkd.in @@ -24,6 +24,9 @@ # # Patches and comments are welcome. Please send them to # , and use "dowkd" in the subject line. +# +# This version is based on commit @PROGRAM_SHA1@ +# in the GIT repository at . use strict; use warnings; -- 2.11.4.GIT