]> git.sthu.org Git - pgp-tools.git/commitdiff
caff: Handle $Rev$ not being expanded
authorweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sat, 31 Jul 2010 11:34:56 +0000 (11:34 +0000)
committerweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sat, 31 Jul 2010 11:34:56 +0000 (11:34 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@470 b513b33f-fedd-0310-b452-c3deb5f4c849

caff/caff

index f32d5b5da615e71526f8c3cc2e32045f969490db..f3708a99a94622f763f91d70d084528ef22dcae4 100755 (executable)
--- 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