From: weasel Date: Sat, 31 Jul 2010 11:34:56 +0000 (+0000) Subject: caff: Handle $Rev$ not being expanded X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=9a29a7759f49cf7d7edf9980cd9abd9bb20ee608;p=pgp-tools.git caff: Handle $Rev$ not being expanded git-svn-id: svn://svn.debian.org/pgp-tools/trunk@470 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/caff/caff b/caff/caff index f32d5b5..f3708a9 100755 --- a/caff/caff +++ b/caff/caff @@ -325,6 +325,7 @@ use GnuPG::Interface; my %CONFIG; my $REVISION = '$Rev$'; my ($REVISION_NUMER) = $REVISION =~ /(\d+)/; +$REVISION_NUMER = 'unknown' unless defined $REVISION_NUMER; my $VERSION = "0.0.0.$REVISION_NUMER"; # Global variables