summaryrefslogtreecommitdiff
path: root/db/dist/buildrel
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-16 16:48:14 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-16 16:48:14 +0300
commit2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79 (patch)
treee12ee52087506ac8c7a5eee83b17497d98df2d40 /db/dist/buildrel
parentb754fe19fd387ca5fe8e7c00ddaa25c898fa192f (diff)
downloadlibrpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.gz
librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.bz2
librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.zip
Update internal BDB to version 4.5.20
Diffstat (limited to 'db/dist/buildrel')
-rw-r--r--db/dist/buildrel45
1 files changed, 30 insertions, 15 deletions
diff --git a/db/dist/buildrel b/db/dist/buildrel
index 2537376a8..1d2263cb5 100644
--- a/db/dist/buildrel
+++ b/db/dist/buildrel
@@ -1,11 +1,12 @@
-# $Id: buildrel,v 1.65 2004/11/09 01:26:29 bostic Exp $
+# $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.
-# Development tree, release home.
-setenv D `pwd`
+setenv D ~bostic/berkeleydb/db.rel
+setenv DBCONF "~bostic/bin/dbconf thread"
+setenv TARGETDIR ~bostic/berkeleydb/
# Update the release number.
cd $D/dist
@@ -24,7 +25,7 @@ cd $D/dist && sh s_all
cd $D && cvs -q commit
# Copy a development tree into a release tree.
-setenv R /var/tmp/db-$VERSION
+setenv R $TARGETDIR/db-$VERSION
rm -rf $R && mkdir -p $R
cd $D && cvs -q status | \
grep "Repository revision" | \
@@ -38,19 +39,25 @@ 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
-# 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_server test_thread test_vxworks test_xa
-cd $R && rm -rf java/src/com/sleepycat/xa
+########################################
+# 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 && ~bostic/bin/dbconf && make >& mklog
+cd $R/build_run && $DBCONF && make >& mklog
cd $R/build_run && make ex_access && ./ex_access
# Check the install
@@ -67,7 +74,7 @@ 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_win32/*.dsp
+cd $R && chmod 664 build_windows/*.dsp
cd $R/dist && sh s_perm
chown -R 100 $R
chgrp -R 100 $R
@@ -88,14 +95,14 @@ 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 | tar xpf - && mv -i db-$VERSION $RNC
+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_win32/*.dsp
+cd $RNC && chmod 664 build_windows/*.dsp
cd $RNC/dist && sh s_perm
chown -R 100 $RNC
chgrp -R 100 $RNC
@@ -112,17 +119,25 @@ 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 -r - db-$VERSION > $T
+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 -r - db-$VERSION.NC > $T
+cd $RNC/.. && zip -q -r - db-$VERSION.NC > $T
chmod 444 $T