]> git.donarmstrong.com Git - wannabuild.git/commitdiff
wanna-build: use git commit hash as version number
authorPhilipp Kern <pkern@debian.org>
Sun, 19 Jun 2011 22:23:52 +0000 (22:23 +0000)
committerPhilipp Kern <pkern@debian.org>
Sun, 19 Jun 2011 22:28:07 +0000 (22:28 +0000)
bin/.gitattributes [new file with mode: 0644]
bin/wanna-build

diff --git a/bin/.gitattributes b/bin/.gitattributes
new file mode 100644 (file)
index 0000000..ba5e35d
--- /dev/null
@@ -0,0 +1 @@
+wanna-build ident
index 288d3f7722139f93fce1802f0e7c4ce69a74bcbf..bc092cf4d0638ccb5412521cfb245c5aac054f94 100755 (executable)
@@ -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";
 }