From: Philipp Kern Date: Sun, 19 Jun 2011 22:23:52 +0000 (+0000) Subject: wanna-build: use git commit hash as version number X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=32bea33563aa6c9fd36b72f63f43bfc09b0400ae wanna-build: use git commit hash as version number --- diff --git a/bin/.gitattributes b/bin/.gitattributes new file mode 100644 index 0000000..ba5e35d --- /dev/null +++ b/bin/.gitattributes @@ -0,0 +1 @@ +wanna-build ident diff --git a/bin/wanna-build b/bin/wanna-build index 288d3f7..bc092cf 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -273,8 +273,8 @@ if (!isin ( $op_mode, qw(list) ) && ( ($distribution//"") =~ /[ ,]/)) { # a proper error. if ($verbose) { - my $version = '$Revision: db181a534e9d $ $Date: 2008/03/26 06:20:22 $ $Author: rmurray $'; - $version =~ s/(^\$| \$ .*$)//g; + my $version = '$Id$'; + $version =~ s/^.* ([a-f0-9]+) .*$/\1/g; print "wanna-build $version for ".($distribution//"sid")." on $arch\n"; }