From bd60f2fc5ba21250ffb2c612397d02b109d2b24f Mon Sep 17 00:00:00 2001
From: Simon Tatham <anakin@pobox.com>
Date: Sun, 17 Jul 2011 22:17:53 +0000
Subject: [PATCH] Fix version reporting in Unix builds versioned by a specific
 svn revision ('Custom build r1234'). Those builds were passing
 '-DSVN_REV=r1234' to version.c, instead of -DSVN_REV=1234 as they should
 have, leading to silly run-time version messages such as 'plink: Custom build
 rr9226'.

To chop the r off the front of the revision string passed in, I've
used a bashism in mkunxarc.sh. I think this is an acceptable extra
dependency.

[originally from svn r9229]
---
 mkunxarc.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mkunxarc.sh b/mkunxarc.sh
index 7c69c2f6f..6c3e8924b 100755
--- a/mkunxarc.sh
+++ b/mkunxarc.sh
@@ -1,4 +1,4 @@
-#!/bin/sh 
+#!/bin/bash 
 
 # Build a Unix source distribution from the PuTTY CVS area.
 #
@@ -16,7 +16,7 @@ case "$1" in
     ;;
   r*)
     arcsuffix="-$1"
-    ver="-DSVN_REV=$1"
+    ver="-DSVN_REV=${1#r}"
     docver=
     ;;
   '')
-- 
GitLab