Commits

Anonymous committed cbb59df

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.

Comments (0)

Files changed (1)

-#!/bin/sh 
+#!/bin/bash 
 
 # Build a Unix source distribution from the PuTTY CVS area.
 #
     ;;
   r*)
     arcsuffix="-$1"
-    ver="-DSVN_REV=$1"
+    ver="-DSVN_REV=${1#r}"
     docver=
     ;;
   '')