head	1.1;
branch	1.1.1;
access;
symbols
	postmerge-db-4_1_24-release:1.1.1.4
	premerge-db-4_1_24-release:1.1.1.4
	pre-db-4_1_24-release:1.1.1.4
	postmerge-db-4_1_17:1.1.1.4
	premerge-db-4_1_17:1.1.1.4
	pre-db-4_1_17:1.1.1.4
	postmerge-db-4_0_14:1.1.1.4
	premerge-db-4_0_14:1.1.1.4
	pre-db-4_0_14:1.1.1.4
	rpm-4_0_3-release:1.1.1.2.2.1
	postmerge-db-4_0_7:1.1.1.4
	premerge-db-4_0_7:1.1.1.4
	pre-db-4_0_7:1.1.1.3
	jbj_b4_rollback:1.1.1.2.2.1
	postmerge-db-3_3_11-release:1.1.1.3
	premerge-db-3_3_11-release:1.1.1.3
	db-3_3_11-release:1.1.1.3
	pre-db-3_3_11-release:1.1.1.2
	rpm-4_0:1.1.1.2.0.2
	postmerge-db-3_3_4-release:1.1.1.2
	premerge-db-3_3_4-release:1.1.1.2
	db-3_3_4-release:1.1.1.2
	pre-db-3_3_4-release:1.1.1.1
	db-3_2_9-release:1.1.1.1
	db-3_2_9-vendor:1.1.1;
locks; strict;
comment	@# @;
expand	@o@;


1.1
date	2001.03.21.18.33.38;	author jbj;	state Exp;
branches
	1.1.1.1;
next	;

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

1.1.1.2
date	2001.05.13.19.58.27;	author jbj;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

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

1.1.1.4
date	2001.10.15.03.47.07;	author jbj;	state dead;
branches;
next	;

1.1.1.2.2.1
date	2001.07.23.20.31.15;	author jbj;	state Exp;
branches;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2002.01.08.04.07.17;	author jbj;	state dead;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh -
#	$Id: script,v 1.21 2001/01/19 18:13:16 bostic Exp $
#
# Build the distribution archives.
#
# A set of commands intended to be cut and pasted into a csh window.

# Development tree, release home.
setenv D /a/db

# Update the release number.
cd $D/dist
vi RELEASE
setenv VERSION \
`sh -c '. RELEASE; echo $DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH'`
echo "Version: $VERSION"

# Make sure the source tree is up-to-date, generate new support files, and
# commit anything that's changed.
cd $D && cvs -q update
cd $D/dist && sh s_all
cd $D && cvs -q commit

# Build the documentation.
cd $D/docs_src && make clean
cd $D/docs_src && make
cd $D/docs_src && make && make check

# Copy a development tree into a release tree.
setenv R /a/db-$VERSION
rm -rf $R && mkdir -p $R
cd $D && tar cf - \
`cvs -q status | sed -n -e "/Repository/s;.*/CVSROOT/db/;;" -e "s/,v//p"` | \
(cd $R && tar xpf -)

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

# Build the documents.
cd $R/docs_src && make

# Build a version.
cd $R && rm -rf build_run && mkdir build_run
cd $R/build_run && ~bostic/bin/dbconf && make >& mklog

# Smoke test.
./ex_access

# Check the install
make prefix=`pwd`/BDB install

# Run distribution check scripts
$R/dist/build/chk.def
$R/dist/build/chk.define
$R/dist/build/chk.offt
$R/dist/build/chk.srcfiles
$R/dist/build/chk.tags

# Clean up the tree.
cd $R && rm -rf build_run docs_src
cd $R && rm -rf test_thread test_purify test_server test_vxworks test/TODO
cd $R && rm -rf test/upgrade/databases && mkdir test/upgrade/databases

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

# 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

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

# 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.
# ACQUIRE ROOT PRIVILEGES
cd $R && rm -f `find . -type l -name 'tags'`
# DISCARD ROOT PRIVILEGES

setenv T "$R/../db-$VERSION.zip"
cd $R/.. && zip -r - db-$VERSION > $T
chmod 444 $T
@


1.1.1.1
log
@db-3.2.9
@
text
@@


1.1.1.2
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: script,v 1.25 2001/04/30 21:26:13 bostic Exp 
d24 5
d40 1
a40 1
# Build the documentation.
a56 1
$R/dist/build/chk.proto
d62 2
a63 2
cd $R && rm -rf test/TODO test/upgrade
cd $R && rm -rf test_perf test_purify test_server test_thread test_vxworks
@


1.1.1.2.2.1
log
@Merge db-3.3.11 onto rpm-4_0 branch.
@
text
@d2 1
a2 1
#	$Id: script,v 1.29 2001/06/01 01:13:38 bostic Exp $
d48 8
d57 1
a57 1
cd $R && rm -rf build_run docs_src java/src/com/sleepycat/test
d59 1
a59 2
cd $R && rm -rf test_cxx test_perf test_purify test_server test_thread
cd $R && rm -rf test_vxworks
@


1.1.1.2.2.2
log
@Update to db-4.0.14.
@
text
@@


1.1.1.3
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: script,v 1.29 2001/06/01 01:13:38 bostic Exp 
d48 8
d57 1
a57 1
cd $R && rm -rf build_run docs_src java/src/com/sleepycat/test
d59 1
a59 2
cd $R && rm -rf test_cxx test_perf test_purify test_server test_thread
cd $R && rm -rf test_vxworks
@


1.1.1.4
log
@*** empty log message ***
@
text
@@


