diff --git a/README b/README index ec5518c0e..52a597930 100644 --- a/README +++ b/README @@ -62,9 +62,8 @@ CREDITS COPYING GNU General Public License -ChangeLog - An incomplete list of changes to the project. We will try harder to - keep this up to date. +VERSION + LTP Version. Makefile Top level make file for LTP. diff --git a/include/mk/automake.mk b/include/mk/automake.mk index e5a4fe047..9893cf6e0 100644 --- a/include/mk/automake.mk +++ b/include/mk/automake.mk @@ -57,7 +57,7 @@ autoheader: configure.ac $(wildcard m4/*.m4) m4/ltp-version.m4 aclocal.m4 include: mkdir -p "$@" -m4/ltp-version.m4: ChangeLog +m4/ltp-version.m4: VERSION sed -n '1{s:LTP-:m4_define([LTP_VERSION],[:;s:$$:]):;p;q}' $< > $@ .PHONY: automake diff --git a/tools/autoltp b/tools/autoltp index f8c3b1045..aece65907 100755 --- a/tools/autoltp +++ b/tools/autoltp @@ -87,7 +87,7 @@ for($i=0; $i <= $#hosts; $i++) { } #this looks lame, but ltp_check needs ltprun.out to grab the ltp version - $ssh->cmd('echo version: $(head -n1 ltp/ChangeLog) > ltprun.out'); + $ssh->cmd('echo version: $(cat VERSION) > ltprun.out'); #stop sar on client(s) if($ssh->cmd("killall sar && killall sadc")) { diff --git a/tools/ltprun b/tools/ltprun index 95fb5bdad..5fae63dbd 100755 --- a/tools/ltprun +++ b/tools/ltprun @@ -67,7 +67,7 @@ untar_ltp() build_ltp() { cd ~/ltp - echo "Building LTP Testsuite version: `head -n1 ChangeLog`"; + echo "Building LTP Testsuite version: `cat VERSION`"; make clean install &> /dev/null if [ $? != "0" ]; then echo "FAILED LTP Testsuite compilation"; return 0;