📄 script
字号:
#!/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/distvi RELEASEsetenv 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 updatecd $D/dist && sh s_allcd $D && cvs -q commit# Build the documentation.cd $D/docs_src && make cleancd $D/docs_src && makecd $D/docs_src && make && make check# Copy a development tree into a release tree.setenv R /a/db-$VERSIONrm -rf $R && mkdir -p $Rcd $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_permcd $R/dist && sh s_symlink# Build the documents.cd $R/docs_src && make# Build a version.cd $R && rm -rf build_run && mkdir build_runcd $R/build_run && ~bostic/bin/dbconf && make >& mklog# Smoke test../ex_access# Check the installmake 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_srccd $R && rm -rf test_thread test_purify test_server test_vxworks test/TODOcd $R && rm -rf test/upgrade/databases && mkdir test/upgrade/databases# ACQUIRE ROOT PRIVILEGEScd $R && find . -type d | xargs chmod 775cd $R && find . -type f | xargs chmod 444cd $R/dist && sh s_permchown -R 100.100 $R# DISCARD ROOT PRIVILEGES# Compare this release with the last one.set LR=3.1.Xcd $R/.. && gzcat /a/releases/db-${LR}.tar.gz | tar xf -cd $R/../db-${LR} && find . | sort > /tmp/__OLDcd $R && find . | sort > /tmp/__NEWdiff -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 > $Tchmod 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 PRIVILEGEScd $R && rm -f `find . -type l -name 'tags'`# DISCARD ROOT PRIVILEGESsetenv T "$R/../db-$VERSION.zip"cd $R/.. && zip -r - db-$VERSION > $Tchmod 444 $T
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -