head	1.6;
access;
symbols
	rpm-4_4_8-release:1.4.2.2
	rpm-4_4_7-release:1.4.2.2
	db-4_5_20:1.6
	rpm-4_4_6-release:1.4.2.1
	rpm-4_4_5-release:1.4.2.1
	db-4_4_20:1.5
	rpm-4_4_4-release:1.4.2.1
	db-4_4_16:1.5
	rpm-4_4_3-release:1.4.2.1
	db-4_4_11:1.5
	db-4_3_29:1.4
	jbj_before_tklcpatches:1.4
	rpm-4_4_2-release:1.4
	pjones-sparse-experiment:1.5.0.2
	db-4_4_4:1.5
	rpm-4_4_1-release:1.4
	db-4_3_27:1.4
	rpm-4_4-release:1.4
	rpm-4_4:1.4.0.2
	db-4_3_21:1.4
	db-4_3_14:1.4
	db-4_2_52:1.3
	rpm-4_3_1-start:1.3
	rpm-4_3:1.3.0.2
	rpm-4_2_1-release:1.2
	rpm-4_1_1-release:1.2
	rpm-4_2-release:1.2
	rpm-4_2:1.2.0.4
	postmerge-db-4_1_24-release:1.2
	premerge-db-4_1_24-release:1.2
	db-4_1_24-release:1.1.1.2
	pre-db-4_1_24-release:1.1.1.2
	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.2
	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.6
date	2006.10.01.20.18.54;	author jbj;	state Exp;
branches;
next	1.5;

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

1.4
date	2004.10.16.01.31.55;	author jbj;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2003.12.15.21.42.43;	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.24;	author jbj;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

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

1.1.1.2
date	2001.12.06.00.07.29;	author jbj;	state Exp;
branches;
next	;

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

1.4.2.1
date	2005.10.28.18.44.32;	author jbj;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2006.10.01.22.29.21;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Update to db-4.5.20.
@
text
@#!/bin/sh
#	$Id: vx_buildcd,v 12.1 2006/08/24 14:45:35 bostic Exp $
#
# Build the Setup SDK CD image on the VxWorks host machine.

. ./RELEASE

B=`pwd`
B=$B/..
D=$B/dist/vx_setup
C=$D/db.CD
Q=/export/home/sue/SetupSDK
S=$Q/resource/mfg/setup
W=sun4-solaris2

symdoc=$D/docs/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH
symdb=$D/windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH
rm -rf $D/docs $D/windlink
mkdir $D/docs $D/windlink $D/windlink/sleepycat
ln -s $B/docs $symdoc
ln -s $B $symdb

s=/tmp/__db_a
t=/tmp/__db_b

#
# Remove the old CD directory if it is there.
if test -d $C; then
	echo "$C cannot exist."
	echo "As root, execute 'rm -rf $C'"
	echo "and then rerun the script"
	exit 1
fi

#
# Check for absolute pathnames in the project files.
# That is bad, but Tornado insists on putting them in
# whenever you add new files.
#
rm -f $t
f=`find $B/build_vxworks -name \*.wpj -print`
for i in $f; do
	grep -l -- "$B" $i >> $t
done
if test -s $t; then
	echo "The following files contain absolute pathnames."
	echo "They must be fixed before building the CD image:"
	cat $t
	exit 1
fi

#
# NOTE: We reuse the same sed script over several files.
#
cat <<ENDOFSEDTEXT > $s
s/@@DB_VERSION_MAJOR@@/$DB_VERSION_MAJOR/g
s/@@DB_VERSION_MINOR@@/$DB_VERSION_MINOR/g
s/@@DB_VERSION_PATCH@@/$DB_VERSION_PATCH/g
s#@@DB_SETUP_DIR@@#$D#g
ENDOFSEDTEXT

f=$D/setup.pool
(sed -f $s $D/vx_setup.in) > $t
    (echo "Building $f" && rm -f $f && cp $t $f)

f=$D/README.TXT
(sed -f $s $D/README.in) > $t
    (echo "Building $f" && rm -f $f && cp $t $f)

f=$D/CONFIG.TCL
(sed -f $s $D/CONFIG.in) > $t
    (echo "Building $f" && rm -f $f && cp $t $f)

f=$D/filelist.demo
(sed -f $s $D/vx_demofile.in) > $t
    (echo "Building $f" && rm -f $f && cp $t $f)

# Copy files into the SetupSDK area.
(cd $D && cp README.TXT $S)
(cd $D && cp LICENSE.TXT $S)
(cd $D && cp CONFIG.TCL $S/RESOURCE/TCL)
(cd $D && cp SETUP.BMP $S/RESOURCE/BITMAPS)

#
# NOTE: The contents of LIB must be on one, long, single line.
# Even preserving it with a \ doesn't work for htmlBook.
#
f=../docs/LIB
(echo "Building $f" && rm -f $f)
cat <<ENDOFLIBTEXT >> $f
{BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH} {Berkeley DB} {<b>BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</b>} {<b><a href="./index.html">BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</a></b>} {BerkeleyDB} {} {} {}
ENDOFLIBTEXT

#
# Start generating the file list.
f=$D/filelist.all

#
# Just put everything into the image.  But we only want to find regular
# files; we cannot have all the directories listed too.
#
# NOTE:  This find is overly aggressive in getting files, particularly
# for the 'windlink/sleepycat' files.  We actually end up with 3 sets of the
# documentation, the "real" ones in 'docs/BerkeleyDB*', the set found
# via 'windlink/sleepycat/Berk*/docs' and the one found via our symlink in
# 'windlink/sleepycat/Berk*/dist/vx_setup/docs/Berk*'.
#
# However, we waste a little disk space so that the expression below
# is trivial and we don't have to maintain it as new files/directories
# are added to DB.
#
(cd $D && find docs/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH/ -follow -name \* -type f -print) > $t
(cd $D && find windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH/ -follow -name docs -prune -o -type f -print) >> $t
(echo "Building $f" && rm -f $f && cp $t $f)
#
# Finally build the CD image!
#
env PATH=$Q/$W/bin:$PATH QMS_BASE=$Q WIND_HOST_TYPE=$W \
pool mfg -d $C -v -nokey BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR < $D/setup.pool
@


1.5
log
@Upgrade to db-4.4.4.
@
text
@d2 1
a2 1
#	$Id: vx_buildcd,v 12.0 2004/11/17 03:43:37 bostic Exp $
d78 1
a78 1
# Copy the Sleepycat specific files into the SetupSDK area.
d91 1
a91 1
{BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH} {Sleepycat Software Berkeley DB} {<b>BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</b>} {<b><a href="./index.html">BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</a></b>} {Sleepycat BerkeleyDB} {} {} {}
@


1.4
log
@... and in with the New ...
@
text
@d2 1
a2 1
#	$Id: vx_buildcd,v 1.6 2001/11/05 21:05:58 sue Exp $
@


1.4.2.1
log
@Update to db-4.4.11.
@
text
@d2 1
a2 1
#	$Id: vx_buildcd,v 12.0 2004/11/17 03:43:37 bostic Exp $
@


1.4.2.2
log
@Merge db-4.5.20 onto rpm-4_4 branch.
@
text
@d2 1
a2 1
#	$Id: vx_buildcd,v 12.1 2006/08/24 14:45:35 bostic Exp $
d78 1
a78 1
# Copy files into the SetupSDK area.
d91 1
a91 1
{BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH} {Berkeley DB} {<b>BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</b>} {<b><a href="./index.html">BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH</a></b>} {BerkeleyDB} {} {} {}
@


1.3
log
@- upgrade to db-4.2.52.
@
text
@@


1.2
log
@Resync with db-4.0.14 (and what's on the rpm-4_0 branch).
@
text
@d2 1
a2 1
#	Id: vx_buildcd,v 1.6 2001/11/05 21:05:58 sue Exp 
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
#	Id: vx_buildcd,v 1.5 2001/09/11 17:09:02 sue Exp 
d17 3
a19 3
symdb=$D/target/src/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH
rm -rf $D/docs $D/target
mkdir $D/docs $D/target $D/target/src
d103 1
a103 1
# for the 'target/src' files.  We actually end up with 3 sets of the
d105 2
a106 2
# via 'target/src/Berk*/docs' and the one found via our symlink in
# 'target/src/Berk*/dist/vx_setup/docs/Berk*'.
d113 1
a113 1
(cd $D && find target/src/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH/ -follow -name docs -prune -o -type f -print) >> $t
@


1.1.2.1
log
@Update to db-4.0.14.
@
text
@d2 1
a2 1
#	Id: vx_buildcd,v 1.6 2001/11/05 21:05:58 sue Exp 
d17 3
a19 3
symdb=$D/windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH
rm -rf $D/docs $D/windlink
mkdir $D/docs $D/windlink $D/windlink/sleepycat
d103 1
a103 1
# for the 'windlink/sleepycat' files.  We actually end up with 3 sets of the
d105 2
a106 2
# via 'windlink/sleepycat/Berk*/docs' and the one found via our symlink in
# 'windlink/sleepycat/Berk*/dist/vx_setup/docs/Berk*'.
d113 1
a113 1
(cd $D && find windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH/ -follow -name docs -prune -o -type f -print) >> $t
@


1.1.1.1
log
@track: auto import
@
text
@@


1.1.1.2
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: vx_buildcd,v 1.6 2001/11/05 21:05:58 sue Exp 
d17 3
a19 3
symdb=$D/windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH
rm -rf $D/docs $D/windlink
mkdir $D/docs $D/windlink $D/windlink/sleepycat
d103 1
a103 1
# for the 'windlink/sleepycat' files.  We actually end up with 3 sets of the
d105 2
a106 2
# via 'windlink/sleepycat/Berk*/docs' and the one found via our symlink in
# 'windlink/sleepycat/Berk*/dist/vx_setup/docs/Berk*'.
d113 1
a113 1
(cd $D && find windlink/sleepycat/BerkeleyDB.$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH/ -follow -name docs -prune -o -type f -print) >> $t
@

