Thread (1 message) 1 message, 1 author, 2011-11-09

Re: [LTP] [PATCH] runltp: fix printing of LTP Version

From: Cyril Hrubis <chrubis@suse.cz>
Date: 2011-11-09 09:09:55

Hi!
quoted
quoted
quoted
Right, but there is one more thing to fix.

The Version is generated from Changelog, which is abandoned for some
time. But we introduced a VERSION file that carries latest version. So
the best woul be to drop Changelog completly and use the VERSION file
instead, anybody objects to that?
I'd just generate the version like so:

VERSION ?= $(shell echo ltp-nightly-`env LANG=C date +%Y%m%d`)

in the Makefile, or something like that... I just did it based on the
ChangeLog as it was the defacto source of truth in the LTP 'release
process' (which fizzled after Subrata couldn't lead that effort
anymore).
Now we have the VERSION file, that should defacto carry on that
information for the future. So there is no problem with that, changing
'head ChangeLog' to 'cat VERSION' should be enough. Maybe it would be
nice to use 'git describe' for builds from git repository too.
I'd propose to remove VERSION from the git and let the buildsys to
create it at install time.

Some like that:

.PHONY: VERSION
VERSION:
	git describe --abbrev=0 > $@

At the end it will replace the old file 'Version'.
Hmm, that wouldn't work for released tarbals that are shipped without
the .git/ directory. We need to look if there is a git repository first
and then decide to use VERSION or git describe. I'll fix these soon.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help