8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00

Changed to force write of update build #.

This commit is contained in:
skywalker 2002-01-06 13:06:39 +00:00
parent 89ee92990b
commit 7b00c9ac22
10 changed files with 37 additions and 126 deletions

View File

@ -29,7 +29,7 @@
* John Bellardo <bellardo@cs.ucsd.edu>
*
*
* $Id: alt_use_sec.h,v 1.2 2002-01-04 11:34:15 skywalker Exp $
* $Id: alt_use_sec.h,v 1.3 2002-01-06 13:06:36 skywalker Exp $
*
*/

View File

@ -1,17 +1,18 @@
/*
FILE GENERATED BY BUILD_NO.KSH. DO NOT EDIT
FILE GENERATED BY src/misc/writeBuildNum.sh
*** DO NOT EDIT ***
TO CHANGE ANY INFORMATION IN HERE PLEASE
EDIT BUILD_NO.KSH IN THE BUILD_WIN32 COMPONENT
FORMAL BUILD NUMBER:35
EDIT src/misc/writeBuildNum.sh
FORMAL BUILD NUMBER:122
*/
#define PRODUCT_VER_STRING "2.0.0.35"
#define FILE_VER_STRING "WI-T2.0.0.35"
#define LICENSE_VER_STRING "WI-T2.0.0.35"
#define FILE_VER_NUMBER 2, 0, 0, 35
#define PRODUCT_VER_STRING "2.0.0.122"
#define FILE_VER_STRING "WI-T2.0.0.122"
#define LICENSE_VER_STRING "WI-T2.0.0.122"
#define FILE_VER_NUMBER 2, 0, 0, 122
#define FB_MAJOR_VER "2"
#define FB_MINOR_VER "0"
#define FB_REV_NO "0"
#define FB_BUILD_NO "35"
#define FB_BUILD_NO "122"
#define FB_BUILD_TYPE "T"
#define FB_BUILD_SUFFIX "Firebird2 Dev1"

View File

@ -336,12 +336,12 @@ ADS array_desc, SLONG * variables, void (*callback) (), SLICE argument)
arg.sdl_arg_status_vector = status_vector;
p = sdl + 1;
while ((UCHAR) * p != gds_sdl_eoc)
while ((UCHAR) * p != gds_sdl_eoc) {
switch (*p++) {
case gds_sdl_struct:
for (n = *p++; n; --n) {
offset = p - sdl - 1;
if (!(p = sdl_desc(p, &junk)))
if (!(p = sdl_desc(p, &junk)))
return error(status_vector, gds_invalid_sdl,
gds_arg_number, (SLONG) offset, 0);
}
@ -375,6 +375,7 @@ ADS array_desc, SLONG * variables, void (*callback) (), SLICE argument)
return FAILURE;
break;
}
}
return SUCCESS;
}

View File

@ -26,7 +26,7 @@
# Contributor(s):
#
#
# $Id: make.defaults,v 1.2 2002-01-04 11:34:13 skywalker Exp $
# $Id: make.defaults,v 1.3 2002-01-06 13:06:35 skywalker Exp $
#

View File

@ -26,7 +26,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.firebird,v 1.12 2002-01-04 11:34:16 skywalker Exp $
# $Id: Makefile.in.firebird,v 1.13 2002-01-06 13:06:36 skywalker Exp $
#
ROOT=..
@ -62,9 +62,22 @@ dirs = alice burp dudley dsql extlib gpre intl isql journal jrd lock msgs \
.PHONY: firebird super_firebird $(dirs)
firebird: phase1 phase2 phase3
firebird: updateBuildNum phase1 phase2 phase3
#----------------------------------------------------------------------------
# jrd/build_no.h contains the version and build# fields used throughout the
# program and quoted in the tools. This routine will update the build_no.h
# file with the auto update build# script file, writeBuildNum.sh. The
# writeBuildNum.sh script is autoupdated by CVS checkins.
#
.PHONY: updateBuildNum
updateBuildNum : jrd/build_no.h
jrd/build_no.h : misc/writeBuildNum.sh
(cd ..; ./src/misc/writeBuildNum.sh rebuildHeader)
#---------------------------------------------------------------------------
# Phase1: make a gpre_static from scratch so we can parse .e and .epp files
# to build the rest of the system. It goes in two bits make a real simple

View File

@ -1,105 +0,0 @@
OVERVIEW
The new makefiles were created to fit in with autoconf, to place the object
files in seperate directories to the source files and to simplify the build
process.
It really does rely on using gnu make so that is the best version to use.
MAKEFILE
Makefiles are found in src/make.new
make.rules
make.defaults
make.shared.variables
prefix.xxx (where xxx = platform)
In src/make.new there are a number of Makefile.in.xxx files and some make.xxx
STRUCTURE OF MAKEFILE.IN.XXX
Each Makefile.in.xxx has the following somewhere near the top:
include make.rules
include make.defaults
include make.platform
include make.shared.variables
...
...
These are:
make.rules
This contains the default rules for compiling the system components. Such as
directory macros CXX etc.
make.defaults
This contains default values for macros that it is likely that the user may
want to override.
make.platform
This file is created from the prefix.xxx where xxx=linux/darwin/freebsd etc.
It provides a spot for the user to override or repalce macros that have been
defined in make.rules and make.defaults. In addition extra dependancies can
be added to build extra targets.
make.shared.variables
This file contains the defintion of macros that are shared across all of the
modules. The only set that are needed are those files that are contained in
the libgds.a/so library since files from many modules contribute to the library.
CREATING OBJECT FILES
In the makefiles the object files are of two sorts .o static and .lo
which are suitable for shared libraries. On most systems the source
files need to be compiled twice to create both .o and .lo files. F
Fortunately the program libtool can help work with this.
The general format of .o file dependancies is:
SERVER_Sources = server.cpp
SERVER_Objects = $(SERVER_Sources:%.cpp=$(OBJ)/%.o)
So the .o files live in $(OBJ) where:
OBJ = $(ROOT)/gen/$ModuleName
Each Makefile also specifies an AllObjects and Dependancies macro which
identified all the objects that this Makefile is to create and the name
of the dependency files generated for those objects.
AllObjects = $(Alice_Objects)
FILE DEPENDANCIES
Include file dependancy information is automatically generated by the gcc
compiler.
The gcc compiler has a flag -MMD which will generate in addition to the
.o file a .d file which contains the dependancy chain of #includes required
for the program. These are then edited and stored in the $(OBJ) directory and
are included in the bottom line of the makefile with
Dependencies = $(All_Objects:.o=.d)
include $(Dependancies)

View File

@ -15,7 +15,7 @@
# All Rights Reserved.
# Contributor(s): ______________________________________.
# Start of file prefix.linux: $(VERSION) $(PLATFORM)
#$Id: make.platform,v 1.2 2002-01-04 11:34:13 skywalker Exp $
#$Id: make.platform,v 1.3 2002-01-06 13:06:35 skywalker Exp $
#Revision 1.6 2000/12/01 11:20:31 fsg
#Added SHRLIB_EXT to prefix.linux

View File

@ -26,7 +26,7 @@
# Contributor(s):
#
#
# $Id: make.rules,v 1.2 2002-01-04 11:34:13 skywalker Exp $
# $Id: make.rules,v 1.3 2002-01-06 13:06:35 skywalker Exp $
#
#____________________________________________________________________________

View File

@ -3,13 +3,13 @@
# 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.92 2002-01-06 13:06:36 skywalker Exp $"
BuildVersion="$Id: writeBuildNum.sh,v 1.93 2002-01-06 13:06:36 skywalker Exp $"
BuildType=T
MajorVer=2
MinorVer=0
RevNo=0
BuildNum=126
BuildNum=123
BuildSuffix="Firebird2 Dev1"
FIREBIRD_VERSION="$MajorVer.$MinorVer.$RevNo"
@ -28,9 +28,10 @@ rebuildHeaderFile() {
cat > $tempfile <<eof
/*
FILE GENERATED BY BUILD_NO.KSH. DO NOT EDIT
FILE GENERATED BY src/misc/writeBuildNum.sh
*** DO NOT EDIT ***
TO CHANGE ANY INFORMATION IN HERE PLEASE
EDIT BUILD_NO.KSH IN THE BUILD_WIN32 COMPONENT
EDIT src/misc/writeBuildNum.sh
FORMAL BUILD NUMBER:$BuildNum
*/

View File

@ -3,7 +3,7 @@
/*********** Preprocessed module -- do not edit ***************/
/*********** Preprocessed module -- do not edit ***************/
/*********** Preprocessed module -- do not edit ***************/
/***************** gpre version LI-T2.0.0.35 Firebird2 Dev1 **********************/
/***************** gpre version LI-T2.0.0.122 Firebird2 Dev1 **********************/
/*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file