[stgt] [PATCH] show tgtd and tgtadm version

Tomasz Chmielewski mangoo at wpkg.org
Tue Dec 23 15:30:39 CET 2008


FUJITA Tomonori schrieb:

> How about this?
> 
> If you compile the git tree, you get:
> 
> fujita at lily:~/git/tgt/usr$ ./tgtadm -h
> Usage: tgtadm [OPTION]
> Linux SCSI Target Framework Administration Utility, version 0.9.2-git-9f4cbd1
> 
> If you compile a release version (or on a box without git installed),
> you get:
> 
> fujita at lily:/tmp/tgt-0.9.2/usr$ ./tgtadm -h|head
> Usage: tgtadm [OPTION]
> Linux SCSI Target Framework Administration Utility, version 0.9.2
> 
> 
> I don't know about Makefile well but it seems to work.

I like it.


> +EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --heads --abbrev|grep "refs/heads/master"|awk '{print $$1}'))

We can get rid of grep and only use awk:

git-show-ref --heads --abbrev|awk '/refs\/heads\/master/{print $1}'


> -Report bugs to <stgt-devel at lists.berlios.de>.\n");
> +Report bugs to <stgt-devel at lists.berlios.de>.\n", TGT_VERSION);

If we're here, let's use a new address: stgt vger.kernel.org


-- 
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list