From f2886984c462af54134b62d1b1f88c8a57a1ee91 Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Thu, 24 Mar 2016 20:33:03 +0300 Subject: [PATCH] Remove old script from branches. --- mkChangeLog.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 mkChangeLog.sh diff --git a/mkChangeLog.sh b/mkChangeLog.sh deleted file mode 100755 index 04d10344f4..0000000000 --- a/mkChangeLog.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -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 - -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/branches/B3_0_Release -svn up || exit -svn log -v >$TmpLog || exit -smallog /firebird/branches/B3_0_Release/ <$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})) -Starting="BuildNum=" -NewLine="BuildNum=$BuildNo" -AwkProgram="(/^$Starting.*/ || \$1 == \"$Starting\") {\$0=\"$NewLine\"} {print \$0}" -awk "$AwkProgram" <$WriteBuildNumFile >$TmpFile && mv $TmpFile $WriteBuildNumFile -chmod +x $WriteBuildNumFile - -$WriteBuildNumFile rebuildHeader $HeaderFile $TmpFile - -svn commit -m "nightly update" ChangeLog $WriteBuildNumFile $HeaderFile -rm -f $TmpLog $TmpFile $TmpSmall