#!/bin/sh # This file is used both to rebuild the header file and to set the # environment variables on the config call BuildVersion="$Id: writeBuildNum.sh,v 1.28732 2010/05/29 13:12:08 fsg Exp $" BuildType=T MajorVer=3 MinorVer=0 RevNo=0 BuildNum=28715 if [ "$SPECIAL_BUILD_SUFFIX" = "" ]; then # Normal builds SuffixKind="Unstable" SuffixVer="" BuildSuffix="Firebird 3.0" [ "$SuffixKind" = "" ] || BuildSuffix="$BuildSuffix $SuffixKind" [ "$SuffixVer" = "" ] || BuildSuffix="$BuildSuffix $SuffixVer" FIREBIRD_PACKAGE_VERSION="$SuffixKind$SuffixVer" PRODUCT_VER_STRING="$MajorVer.$MinorVer.$RevNo.$BuildNum" else # Special builds (daily snapshots, etc) BuildSuffix="Firebird 3.0 $SPECIAL_BUILD_SUFFIX" FIREBIRD_PACKAGE_VERSION=$SPECIAL_BUILD_SUFFIX PRODUCT_VER_STRING="$MajorVer.$MinorVer.$RevNo.$BuildNum-$SPECIAL_BUILD_SUFFIX" fi FIREBIRD_PACKAGE_VERSION=`echo $FIREBIRD_PACKAGE_VERSION | tr -d '[ ]'` FIREBIRD_VERSION="$MajorVer.$MinorVer.$RevNo" FILE_VER_STRING="WI-$BuildType$MajorVer.$MinorVer.$RevNo.$BuildNum" FILE_VER_NUMBER="$MajorVer, $MinorVer, $RevNo, $BuildNum" if [ $# -eq 3 ] then headerFile=$2 tempfile=$3; else tempfile=gen/test.header.txt headerFile=src/jrd/build_no.h; fi #______________________________________________________________________________ # Routine to build a new jrd/build_no.h file. If required. rebuildHeaderFile() { cat > $tempfile <$1 <