From 32bea33563aa6c9fd36b72f63f43bfc09b0400ae Mon Sep 17 00:00:00 2001 From: Philipp Kern Date: Sun, 19 Jun 2011 22:23:52 +0000 Subject: [PATCH] wanna-build: use git commit hash as version number --- bin/.gitattributes | 1 + bin/wanna-build | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 bin/.gitattributes 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"; } -- 2.39.2