mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Make it work faster
This commit is contained in:
parent
a189f16876
commit
913299b3a0
@ -3,15 +3,18 @@
|
|||||||
PositiveOffset=15462 # will be correct for all branches after FB3
|
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
|
# 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
|
TmpFile=temp.build.num
|
||||||
|
TmpSmall=${TmpDir}/small.log
|
||||||
WriteBuildNumFile="src/misc/writeBuildNum.sh"
|
WriteBuildNumFile="src/misc/writeBuildNum.sh"
|
||||||
HeaderFile="src/jrd/build_no.h"
|
HeaderFile="src/jrd/build_no.h"
|
||||||
|
|
||||||
cd /home/fbadmin/changelogs/trunk
|
cd /home/fbadmin/changelogs/trunk
|
||||||
svn up || exit
|
svn up || exit
|
||||||
svn log -v >$TempLog || exit
|
svn log -v >$TmpLog || exit
|
||||||
smallog <$TempLog >ChangeLog || 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`
|
VersionCount=`egrep -c '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}' ChangeLog`
|
||||||
BuildNo=$((${VersionCount}+${PositiveOffset}))
|
BuildNo=$((${VersionCount}+${PositiveOffset}))
|
||||||
@ -24,4 +27,4 @@ chmod +x $WriteBuildNumFile
|
|||||||
$WriteBuildNumFile rebuildHeader $HeaderFile $TmpFile
|
$WriteBuildNumFile rebuildHeader $HeaderFile $TmpFile
|
||||||
|
|
||||||
svn commit -m "nightly update" ChangeLog $WriteBuildNumFile $HeaderFile
|
svn commit -m "nightly update" ChangeLog $WriteBuildNumFile $HeaderFile
|
||||||
rm -f $TempLog $TmpFile
|
rm -f $TmpLog $TmpFile $TmpSmall
|
||||||
|
Loading…
Reference in New Issue
Block a user