Re: [PATCH] show tgtd and tgtadm version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FUJITA Tomonori schrieb:

How about this?

If you compile the git tree, you get:

fujita@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@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@xxxxxxxxxxxxxxxx>.\n");
+Report bugs to <stgt-devel@xxxxxxxxxxxxxxxx>.\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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux