From 913299b3a096b99ff04f8da54f19664e77f83a6c Mon Sep 17 00:00:00 2001 From: firebirds Date: Tue, 9 Dec 2014 11:13:39 +0000 Subject: [PATCH] Make it work faster --- mkChangeLog.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mkChangeLog.sh b/mkChangeLog.sh index c8305a2d51..1c5aa6904c 100755 --- a/mkChangeLog.sh +++ b/mkChangeLog.sh @@ -3,15 +3,18 @@ PositiveOffset=15462 # will be correct for all branches after FB3 # Other values are: 2.5:13820 2.1:9165 2.0:6144 1.5:1748 -TempLog=temp.log +TmpDir=/var/tmp +TmpLog=${TmpDir}/temp.log TmpFile=temp.build.num +TmpSmall=${TmpDir}/small.log WriteBuildNumFile="src/misc/writeBuildNum.sh" HeaderFile="src/jrd/build_no.h" cd /home/fbadmin/changelogs/trunk svn up || exit -svn log -v >$TempLog || exit -smallog <$TempLog >ChangeLog || exit +svn log -v >$TmpLog || exit +smallog <$TmpLog >$TmpSmall || exit +dd if=$TmpSmall of=ChangeLog bs=512k || exit VersionCount=`egrep -c '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}' ChangeLog` BuildNo=$((${VersionCount}+${PositiveOffset})) @@ -24,4 +27,4 @@ chmod +x $WriteBuildNumFile $WriteBuildNumFile rebuildHeader $HeaderFile $TmpFile svn commit -m "nightly update" ChangeLog $WriteBuildNumFile $HeaderFile -rm -f $TempLog $TmpFile +rm -f $TmpLog $TmpFile $TmpSmall