head	1.10;
access;
symbols
	rpm-4_4_8-release:1.7.2.2
	rpm-4_4_7-release:1.7.2.2
	db-4_5_20:1.10
	rpm-4_4_6-release:1.7.2.1
	rpm-4_4_5-release:1.7.2.1
	db-4_4_20:1.9
	rpm-4_4_4-release:1.7.2.1
	db-4_4_16:1.9
	rpm-4_4_3-release:1.7.2.1
	db-4_4_11:1.9
	db-4_3_29:1.7
	jbj_before_tklcpatches:1.7
	rpm-4_4_2-release:1.7
	pjones-sparse-experiment:1.8.0.2
	db-4_4_4:1.8
	rpm-4_4_1-release:1.7
	db-4_3_27:1.7
	rpm-4_4-release:1.7
	rpm-4_4:1.7.0.2
	db-4_3_21:1.7
	db-4_3_14:1.6
	db-4_2_52:1.5
	rpm-4_3_1-start:1.5
	rpm-4_3:1.5.0.2
	rpm-4_2_1-release:1.4
	rpm-4_1_1-release:1.4
	rpm-4_2-release:1.4
	rpm-4_2:1.4.0.2
	postmerge-db-4_1_24-release:1.4
	premerge-db-4_1_24-release:1.3
	db-4_1_24-release:1.1.1.4
	pre-db-4_1_24-release:1.1.1.3
	rpm-4_1-release:1.2
	postmerge-db-4_1_17:1.2
	premerge-db-4_1_17:1.2
	db-4_1_17:1.1.1.3
	pre-db-4_1_17:1.1.1.2
	rpm-4_1:1.2.0.2
	rpm-4_0_4-release:1.1.2.1
	jbj-before-beecrypt:1.1.2.1
	rpm-4_0:1.1.0.2
	postmerge-db-4_0_14:1.1.1.2
	premerge-db-4_0_14:1.1.1.2
	db-4_0_14:1.1.1.2
	pre-db-4_0_14:1.1.1.1
	postmerge-db-4_0_7:1.1.1.1
	premerge-db-4_0_7:1.1.1.1
	db-4_0_7:1.1.1.1
	db-3_2_9-vendor:1.1.1;
locks; strict;
comment	@# @;
expand	@o@;


1.10
date	2006.10.01.20.18.53;	author jbj;	state Exp;
branches;
next	1.9;

1.9
date	2005.10.28.17.13.17;	author jbj;	state Exp;
branches;
next	1.8;

1.8
date	2005.02.21.15.53.57;	author jbj;	state Exp;
branches;
next	1.7;

1.7
date	2004.11.11.15.58.46;	author jbj;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2004.10.16.01.31.54;	author jbj;	state Exp;
branches;
next	1.5;

1.5
date	2003.12.15.21.42.27;	author jbj;	state Exp;
branches;
next	1.4;

1.4
date	2002.09.19.21.10.00;	author jbj;	state Exp;
branches;
next	1.3;

1.3
date	2002.08.14.19.26.41;	author jbj;	state Exp;
branches;
next	1.2;

1.2
date	2002.01.17.20.11.42;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.15.03.47.22;	author jbj;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.10.15.03.47.22;	author jbj;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.12.06.00.07.12;	author jbj;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2002.08.14.16.31.51;	author jbj;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2002.09.19.20.33.46;	author jbj;	state Exp;
branches;
next	;

1.1.2.1
date	2002.01.08.04.07.14;	author jbj;	state Exp;
branches;
next	;

1.7.2.1
date	2005.10.28.18.44.31;	author jbj;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2006.10.01.22.29.19;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Update to db-4.5.20.
@
text
@# $Id: buildrel,v 12.14 2006/09/20 01:12:33 bostic Exp $
#
# Build the distribution package.
#
# A set of commands intended to be cut and pasted into a csh window.

setenv D		~bostic/berkeleydb/db.rel
setenv DBCONF		"~bostic/bin/dbconf thread"
setenv TARGETDIR	~bostic/berkeleydb/

# Update the release number.
cd $D/dist
cvs -q update RELEASE
vi RELEASE
setenv VERSION `sh -c '. RELEASE; echo $DB_VERSION'`
echo "Version: $VERSION"

# Make sure the source tree is up-to-date
cd $D && cvs -q update

# Build auto-generated files.
cd $D/dist && sh s_all

# Commit all of the changes.
cd $D && cvs -q commit

# Copy a development tree into a release tree.
setenv R $TARGETDIR/db-$VERSION
rm -rf $R && mkdir -p $R
cd $D && cvs -q status | \
    grep "Repository revision" | \
    sed -e 's;.*CVSROOT/db/;;' \
        -e 's;.*CVSROOT/;;' \
	-e 's;,v$;;' | pax -rw $R/

# Build the documentation, copy it into place.
cd db_docs && cvs -q update
cd db_docs && sh build $D clean && sh build $D |& sed '/.html$/d'
cd je/docs_src && sh build db ../../db
rm -rf $R/docs && cp -r $D/docs $R/docs

########################################
# PATCH RELEASE: starting point.
########################################

# Fix symbolic links and permissions.
cd $R/dist && sh s_perm
cd $R/dist && sh s_symlink

# Remove source directories we don't distribute.
cd $R && rm -rf build_brew os_brew
cd $R && rm -rf docs_src docs/api_java docs/api_c/pindex.src
cd $R && rm -rf java/src/com/sleepycat/xa
cd $R && rm -rf rpc_server/java
cd $R && rm -rf test/TODO test/upgrade test_perf test_purify
cd $R && rm -rf test_rep test_server test_thread test_vxworks test_xa

# Build a version and smoke test.
cd $R && rm -rf build_run && mkdir build_run
cd $R/build_run && $DBCONF && make >& mklog
cd $R/build_run && make ex_access && ./ex_access

# Check the install
cd $R/build_run && make prefix=`pwd`/BDB install

# Build a small-footprint version and smoke test.
cd $R && rm -rf build_run && mkdir build_run
cd $R/build_run && ../dist/configure --enable-smallbuild && make >& mklog
cd $R/build_run && make ex_access && ./ex_access

# Remove the build directory
cd $R && rm -rf build_run

# ACQUIRE ROOT PRIVILEGES
cd $R && find . -type d | xargs chmod 775
cd $R && find . -type f | xargs chmod 444
cd $R && chmod 664 build_windows/*.dsp
cd $R/dist && sh s_perm
chown -R 100 $R
chgrp -R 100 $R
# DISCARD ROOT PRIVILEGES

# Check for file names differing only in case.
cd $R && find . | sort -f | uniq -ic | sed '/1 /d'

# Create the crypto tar archive release.
setenv T "$R/../db-$VERSION.tar.gz"
cd $R/.. && tar cf - db-$VERSION | gzip --best > $T
chmod 444 $T

# Check the path length.
gzcat $T | tar tf - |\
awk '{ if (length() > 99) print "Path length: " length() " bytes: " $0;}'

# Create the non-crypto tree.
setenv RNC "$R/../db-$VERSION.NC"
rm -rf $RNC $R/../__TMP && mkdir $R/../__TMP
cd $R/../__TMP && gzcat $T | pax -r && mv -i db-$VERSION $RNC
cd $R && rm -rf $R/../__TMP
cd $RNC/dist && sh s_crypto

# ACQUIRE ROOT PRIVILEGES
cd $RNC && find . -type d | xargs chmod 775
cd $RNC && find . -type f | xargs chmod 444
cd $RNC && chmod 664 build_windows/*.dsp
cd $RNC/dist && sh s_perm
chown -R 100 $RNC
chgrp -R 100 $RNC
# DISCARD ROOT PRIVILEGES

# Create the non-crypto tar archive release.
setenv T "$R/../db-$VERSION.NC.tar.gz"
cd $RNC/.. && tar cf - db-$VERSION.NC | gzip --best > $T
chmod 444 $T

# Check the path length.
gzcat $T | tar tf - |\
awk '{ if (length() > 99) print "Path length: " length() " bytes: " $0;}'

# Remove tags files.  They're large and we don't want to store symbolic links
# in the zip archive for portability reasons.
#
# Modify the text files to have Windows end-of-line characters.
# ACQUIRE ROOT PRIVILEGES
cd $R && rm -f `find . -name 'tags'`
cd $RNC && rm -f `find . -name 'tags'`

set t=__tmp
cd $R && awk '{print $0 "\r"}' < LICENSE > $t && cp $t LICENSE && rm -f $t
cd $R && awk '{print $0 "\r"}' < README > $t && cp $t README && rm -f $t
cd $RNC && awk '{print $0 "\r"}' < LICENSE > $t && cp $t LICENSE && rm -f $t
cd $RNC && awk '{print $0 "\r"}' < README > $t && cp $t README && rm -f $t
# DISCARD ROOT PRIVILEGES

# Create the crypto zip archive release.
setenv T "$R/../db-$VERSION.zip"
cd $R/.. && zip -q -r - db-$VERSION > $T
chmod 444 $T

# Create the non-crypto zip archive release.
setenv T "$R/../db-$VERSION.NC.zip"
cd $RNC/.. && zip -q -r - db-$VERSION.NC > $T
chmod 444 $T
@


1.9
log
@Update to db-4.4.11.
@
text
@d1 1
a1 1
# $Id: buildrel,v 12.1 2005/10/25 00:27:35 bostic Exp $
d7 3
a9 2
# Development tree, release home.
setenv D `pwd`
d28 1
a28 1
setenv R /var/tmp/db-$VERSION
d42 3
a44 5
# Remove source directories we don't distribute.
cd $R && rm -rf docs_src docs/api_java
cd $R && rm -rf test/TODO test/upgrade test_perf test_purify
cd $R && rm -rf test_rep test_server test_thread test_vxworks test_xa
cd $R && rm -rf java/src/com/sleepycat/xa
d50 8
d60 1
a60 1
cd $R/build_run && ~bostic/bin/dbconf && make >& mklog
d77 1
a77 1
cd $R && chmod 664 build_win32/*.dsp
d98 1
a98 1
cd $R/../__TMP && gzcat $T | tar xpf - && mv -i db-$VERSION $RNC
d105 1
a105 1
cd $RNC && chmod 664 build_win32/*.dsp
d122 2
d127 6
d137 1
a137 1
cd $R/.. && zip -r - db-$VERSION > $T
d142 1
a142 1
cd $RNC/.. && zip -r - db-$VERSION.NC > $T
@


1.8
log
@Upgrade to db-4.4.4.
@
text
@d1 1
a1 1
# $Id: buildrel,v 12.0 2004/11/17 03:43:33 bostic Exp $
d44 1
a44 1
cd $R && rm -rf test_server test_thread test_vxworks test_xa
@


1.7
log
@Upgrade to db-4.3.21.
@
text
@d1 1
a1 1
# $Id: buildrel,v 1.65 2004/11/09 01:26:29 bostic Exp $
@


1.7.2.1
log
@Update to db-4.4.11.
@
text
@d1 1
a1 1
# $Id: buildrel,v 12.1 2005/10/25 00:27:35 bostic Exp $
d44 1
a44 1
cd $R && rm -rf test_rep test_server test_thread test_vxworks test_xa
@


1.7.2.2
log
@Merge db-4.5.20 onto rpm-4_4 branch.
@
text
@d1 1
a1 1
# $Id: buildrel,v 12.14 2006/09/20 01:12:33 bostic Exp $
d7 2
a8 3
setenv D		~bostic/berkeleydb/db.rel
setenv DBCONF		"~bostic/bin/dbconf thread"
setenv TARGETDIR	~bostic/berkeleydb/
d27 1
a27 1
setenv R $TARGETDIR/db-$VERSION
d41 5
a45 3
########################################
# PATCH RELEASE: starting point.
########################################
a50 8
# Remove source directories we don't distribute.
cd $R && rm -rf build_brew os_brew
cd $R && rm -rf docs_src docs/api_java docs/api_c/pindex.src
cd $R && rm -rf java/src/com/sleepycat/xa
cd $R && rm -rf rpc_server/java
cd $R && rm -rf test/TODO test/upgrade test_perf test_purify
cd $R && rm -rf test_rep test_server test_thread test_vxworks test_xa

d53 1
a53 1
cd $R/build_run && $DBCONF && make >& mklog
d70 1
a70 1
cd $R && chmod 664 build_windows/*.dsp
d91 1
a91 1
cd $R/../__TMP && gzcat $T | pax -r && mv -i db-$VERSION $RNC
d98 1
a98 1
cd $RNC && chmod 664 build_windows/*.dsp
a114 2
#
# Modify the text files to have Windows end-of-line characters.
a117 6

set t=__tmp
cd $R && awk '{print $0 "\r"}' < LICENSE > $t && cp $t LICENSE && rm -f $t
cd $R && awk '{print $0 "\r"}' < README > $t && cp $t README && rm -f $t
cd $RNC && awk '{print $0 "\r"}' < LICENSE > $t && cp $t LICENSE && rm -f $t
cd $RNC && awk '{print $0 "\r"}' < README > $t && cp $t README && rm -f $t
d122 1
a122 1
cd $R/.. && zip -q -r - db-$VERSION > $T
d127 1
a127 1
cd $RNC/.. && zip -q -r - db-$VERSION.NC > $T
@


1.6
log
@... and in with the New ...
@
text
@d1 1
a1 1
# $Id: buildrel,v 1.60 2004/10/14 15:32:29 bostic Exp $
a22 5
# Build the documentation.
cd db.docs && cvs -q update
cd db.docs && sh build $D clean && sh build $D |& sed '/.html$/d'
cd je/docs_src && sh build db ../../db

d35 4
a38 1
# Copy the already-built documentation into place
d51 1
a51 1
# Build a version.
d54 1
a54 3

# Smoke test.
cd $R/build_run && ./ex_access
d59 1
a59 1
# Build a small-footprint version.
d62 1
d76 3
d84 4
d108 4
@


1.5
log
@- upgrade to db-4.2.52.
@
text
@d1 1
a1 1
# $Id: buildrel,v 1.57 2003/11/28 19:21:02 bostic Exp $
d20 3
d25 2
a26 2
cd db.docs && sh build ../db.rel clean && sh build ../db.rel |& sed '/.html$/d'
cd db.docs && sh build ../db.rel javadoc
d28 1
a28 2
# Generate new support files, commit anything that's changed.
cd $D/dist && sh s_all
@


1.4
log
@Conflict resolved.
@
text
@d1 1
a1 2
#!/bin/sh -
#	Id: buildrel,v 1.39 2002/09/06 14:30:31 bostic Exp 
d3 1
a3 1
# Build the distribution archives.
d12 1
d14 1
a14 2
setenv VERSION \
`sh -c '. RELEASE; echo $DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH'`
d17 1
a17 2
# Make sure the source tree is up-to-date, generate new support files, and
# commit anything that's changed.
d19 7
d32 14
a45 3
cd $D && tar cf - \
`cvs -q status | sed -n -e "/Repository/s;.*/CVSROOT/db/;;" -e "s/,v//p"` | \
(cd $R && tar xpf -)
a57 4
# Build the documentation.
cd $R/docs_src && sh build clean
cd $R/docs_src && sh build |& sed '/.html$/d'

d61 6
a66 4
# Clean up the tree.
cd $R && rm -rf build_run docs_src
cd $R && rm -rf test/TODO test/upgrade test_perf test_purify
cd $R && rm -rf test_server test_thread test_vxworks test_xa
d73 2
a74 1
chown -R 100.100 $R
a76 7
# Compare this release with the last one.
set LR=3.1.X
cd $R/.. && gzcat /a/releases/db-${LR}.tar.gz | tar xf -
cd $R/../db-${LR} && find . | sort > /tmp/__OLD
cd $R && find . | sort > /tmp/__NEW
diff -c /tmp/__OLD /tmp/__NEW

d94 2
a95 1
chown -R 100.100 $RNC
d103 2
a104 2
# Remove symbolic links to tags files.  They're large and we don't want
# to store real symbolic links in the zip archive for portability reasons.
d106 2
a107 2
cd $R && rm -f `find . -type l -name 'tags'`
cd $RNC && rm -f `find . -type l -name 'tags'`
@


1.3
log
@db-4.1.17 orphans.
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.34 2002/06/24 17:48:25 bostic Exp 
d9 1
a9 1
setenv D /a/db
d51 2
a52 2
cd $R && rm -rf test/TODO test/upgrade
cd $R && rm -rf test_perf test_purify test_server test_thread test_vxworks
d76 1
a76 1
rm -rf $R/../__TMP && mkdir $R/../__TMP
d80 8
@


1.2
log
@Resync with db-4.0.14 (and what's on the rpm-4_0 branch).
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.31 2001/10/14 15:31:11 bostic Exp 
a34 3
# Build the documentation.
cd $R/docs_src && make

d40 5
a44 1
./ex_access
d47 1
a47 1
make prefix=`pwd`/BDB install
d69 1
a69 1
# Create the tar archive release.
d74 14
a87 4
# Create the zip archive release.
#
# Remove symbolic links to tags files.  They're large and we don't want to
# store real symbolic links in the archive for portability reasons.
d90 1
d93 1
d96 5
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.30 2001/08/07 18:19:37 bostic Exp 
d25 1
a25 1
setenv R /a/db-$VERSION
d49 1
a49 1
cd $R && rm -rf build_run docs_src java/src/com/sleepycat/test
d51 1
a51 2
cd $R && rm -rf test_cxx test_perf test_purify test_server test_thread
cd $R && rm -rf test_vxworks
@


1.1.2.1
log
@Update to db-4.0.14.
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.31 2001/10/14 15:31:11 bostic Exp 
d25 1
a25 1
setenv R /var/tmp/db-$VERSION
d49 1
a49 1
cd $R && rm -rf build_run docs_src
d51 2
a52 1
cd $R && rm -rf test_perf test_purify test_server test_thread test_vxworks
@


1.1.1.1
log
@track: auto import
@
text
@@


1.1.1.2
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.31 2001/10/14 15:31:11 bostic Exp 
d25 1
a25 1
setenv R /var/tmp/db-$VERSION
d49 1
a49 1
cd $R && rm -rf build_run docs_src
d51 2
a52 1
cd $R && rm -rf test_perf test_purify test_server test_thread test_vxworks
@


1.1.1.3
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.34 2002/06/24 17:48:25 bostic Exp 
d35 3
d43 1
a43 5
cd $R/build_run && ./ex_access

# Build the documentation.
cd $R/docs_src && sh build clean
cd $R/docs_src && sh build |& sed '/.html$/d'
d46 1
a46 1
cd $R/build_run && make prefix=`pwd`/BDB install
d68 1
a68 1
# Create the crypto tar archive release.
d73 4
a76 14
# Create the non-crypto tree.
setenv RNC "$R/../db-$VERSION.NC"
rm -rf $R/../__TMP && mkdir $R/../__TMP
cd $R/../__TMP && gzcat $T | tar xpf - && mv -i db-$VERSION $RNC
cd $R && rm -rf $R/../__TMP
cd $RNC/dist && sh s_crypto

# Create the non-crypto tar archive release.
setenv T "$R/../db-$VERSION.NC.tar.gz"
cd $RNC/.. && tar cf - db-$VERSION.NC | gzip --best > $T
chmod 444 $T

# Remove symbolic links to tags files.  They're large and we don't want
# to store real symbolic links in the zip archive for portability reasons.
a78 1
cd $RNC && rm -f `find . -type l -name 'tags'`
a80 1
# Create the crypto zip archive release.
a82 5
chmod 444 $T

# Create the non-crypto zip archive release.
setenv T "$R/../db-$VERSION.NC.zip"
cd $RNC/.. && zip -r - db-$VERSION.NC > $T
@


1.1.1.4
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: buildrel,v 1.39 2002/09/06 14:30:31 bostic Exp 
d9 1
a9 1
setenv D `pwd`
d51 2
a52 2
cd $R && rm -rf test/TODO test/upgrade test_perf test_purify
cd $R && rm -rf test_server test_thread test_vxworks test_xa
d76 1
a76 1
rm -rf $RNC $R/../__TMP && mkdir $R/../__TMP
a79 8

# ACQUIRE ROOT PRIVILEGES
cd $RNC && find . -type d | xargs chmod 775
cd $RNC && find . -type f | xargs chmod 444
cd $RNC && chmod 664 build_win32/*.dsp
cd $RNC/dist && sh s_perm
chown -R 100.100 $RNC
# DISCARD ROOT PRIVILEGES
@


