From: Frank Schlottmann-G. <fs...@us...> - 2000-12-08 16:18:23
|
Update of /cvsroot/firebird/interbase/builds_win32/original In directory slayer.i.sourceforge.net:/tmp/cvs-serv7830/interbase/builds_win32/original Modified Files: build_no.ksh Log Message: Preliminary changes to get IB_BUILD_NO automatically increased on commits. setup_dirs will create 'jrd/build_no.h' by a call to a slightly modified 'builds_win32/original/build_no.ksh' that gets IB_BUILD_NO from 'this_build', that hopefully will be increased automatically in the near future :-) I have changed 'jrd/iblicense.h' to use IB_BUILD_TYPE from 'jrd/build_no.h'. So all changes to version numbers, build types etc. can now be done in 'builds_win32/original/build_no.ksh'. Index: build_no.ksh =================================================================== RCS file: /cvsroot/firebird/interbase/builds_win32/original/build_no.ksh,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** build_no.ksh 2000/08/03 20:42:52 1.1.1.1 --- build_no.ksh 2000/12/08 16:18:21 1.2 *************** *** 15,36 **** # All Rights Reserved. # Contributor(s): ______________________________________. ! # This script should only be run for 'formal' builds. Other builds should use ! # the build_no.h in win_nt/original. (refresh will copy it to JRD) # the variable BUILD_TYPE can be used for more complex manipulations of the # the version resource flags, depending on if it is I B or V ! BUILD_TYPE=V MAJOR_VER=6 MINOR_VER=0 ! REV_NO=0 ! if ! [ -f last_build ] then ! echo $0:last_build not found exit 1 fi ! LASTBUILD=$(cat last_build) ! THISBUILD=$(expr ${LASTBUILD} + 1) PRODUCT_VER_STRING="${MAJOR_VER}"."${MINOR_VER}"."${REV_NO}"."${THISBUILD}" FILE_VER_STRING='WI-'"${BUILD_TYPE}${MAJOR_VER}"."${MINOR_VER}"."${REV_NO}"."${THISBUILD}" --- 15,56 ---- # All Rights Reserved. # Contributor(s): ______________________________________. ! # $Log$ ! # Revision 1.2 2000/12/08 16:18:21 fsg ! # Preliminary changes to get IB_BUILD_NO automatically ! # increased on commits. ! # ! # setup_dirs will create 'jrd/build_no.h' by a call to ! # a slightly modified 'builds_win32/original/build_no.ksh' ! # that gets IB_BUILD_NO from 'this_build', that hopefully ! # will be increased automatically in the near future :-) ! # ! # I have changed 'jrd/iblicense.h' to use IB_BUILD_TYPE ! # from 'jrd/build_no.h'. ! # So all changes to version numbers, build types etc. can ! # now be done in 'builds_win32/original/build_no.ksh'. ! # ! # ! # ! # ! # This script should only be run for 'formal' builds. ! # It will be run when setupdirs is executed and create ! # jrd/build_no.h with the formal build number received from cvs. ! # Other builds should use the build_no.h in win_nt/original. (refresh will copy it to JRD) # the variable BUILD_TYPE can be used for more complex manipulations of the # the version resource flags, depending on if it is I B or V ! BUILD_TYPE=T MAJOR_VER=6 MINOR_VER=0 ! REV_NO=9 ! if ! [ -f this_build ] then ! echo $0:this_build not found exit 1 fi ! THISBUILD=$(cat this_build) ! PRODUCT_VER_STRING="${MAJOR_VER}"."${MINOR_VER}"."${REV_NO}"."${THISBUILD}" FILE_VER_STRING='WI-'"${BUILD_TYPE}${MAJOR_VER}"."${MINOR_VER}"."${REV_NO}"."${THISBUILD}" *************** *** 40,45 **** echo '/*EDIT BUILD_NO.KSH IN THE BUILD_WIN32 COMPONENT*/' >> jrd/build_no.h echo '/*FORMAL BUILD NUMBER:'${THISBUILD}'*/' >> jrd/build_no.h ! echo '#define PRODUCT_VER_STRING '\"${PRODUCT_VER_STRING}\\\\0\" >> jrd/build_no.h ! echo '#define FILE_VER_STRING '\"${FILE_VER_STRING}\\\\0\" >> jrd/build_no.h echo '#define LICENSE_VER_STRING '\"${FILE_VER_STRING}\" >> jrd/build_no.h echo '#define FILE_VER_NUMBER '${FILE_VER_NUMBER} >> jrd/build_no.h --- 60,65 ---- echo '/*EDIT BUILD_NO.KSH IN THE BUILD_WIN32 COMPONENT*/' >> jrd/build_no.h echo '/*FORMAL BUILD NUMBER:'${THISBUILD}'*/' >> jrd/build_no.h ! echo '#define PRODUCT_VER_STRING '\"${PRODUCT_VER_STRING}\\0\" >> jrd/build_no.h ! echo '#define FILE_VER_STRING '\"${FILE_VER_STRING}\\0\" >> jrd/build_no.h echo '#define LICENSE_VER_STRING '\"${FILE_VER_STRING}\" >> jrd/build_no.h echo '#define FILE_VER_NUMBER '${FILE_VER_NUMBER} >> jrd/build_no.h *************** *** 48,50 **** echo '#define IB_REV_NO '\"${REV_NO}\" >> jrd/build_no.h echo '#define IB_BUILD_NO '\"${THISBUILD}\" >> jrd/build_no.h ! echo ${THISBUILD} > last_build --- 68,70 ---- echo '#define IB_REV_NO '\"${REV_NO}\" >> jrd/build_no.h echo '#define IB_BUILD_NO '\"${THISBUILD}\" >> jrd/build_no.h ! echo '#define IB_BUILD_TYPE '\"${BUILD_TYPE}\" >> jrd/build_no.h |