📄 install.sh
字号:
#! /bin/sh# $Id: install.sh,v 1000.2 2004/06/01 17:36:53 gouriano Exp $# Authors: Denis Vakatov (vakatov@ncbi.nlm.nih.gov)# Anton Lavrentiev (lavr@ncbi.nlm.nih.gov)## Deploy sources, headers, libraries and executables for the further use# by the "external" users' projects# Cmd.-line args -- source and destinationscript="$0"builddir="${1:-//u/coremake/cxx}"target="${2:-//u/coremake/public/cxx.last}"if test -n "$3" ; then echo "USAGE: `basename $script` [build_dir] [install_dir]"fierror(){ echo "[`basename $script`] ERROR: $1" exit 1}makedir(){ test -d "$1" || mkdir $2 "$1" || error "Cannot create \"$1\""}echo "[`basename $script`] NCBI C++: \"$builddir\" to \"$target\"..."sleep 2# Derive the destination dirsdocdir="$target"/docincdir="$target"/includesrcdir="$target"/srcaltsrc="$target"/altsrcdbgdir="$target"/Debuglibdir="$target"/Releasebindir="$target"/bin# Checktest -d "$builddir" || error "Absent build dir \"$builddir\""# Reset the public directorytest -d "$target" && find "$target" -type f -exec rm -f {} \; >/dev/null 2>&1test -d "$target" || mkdir -p "$target"test -d "$target" || error "Cannot create target dir \"$target\""# Documentationmakedir "$docdir" -pcp -pr "$builddir"/doc/* "$docdir"cd "$docdir"find . -type d -name CVS -exec rm -r {} \;# Include dirmakedir "$incdir" -pcp -pr "$builddir"/include/* "$incdir"cd "$incdir"find . -type d -name CVS -exec rm -r {} \;# Source dirmakedir "$srcdir" -pcp -pr "$builddir"/src/* "$srcdir"cd "$srcdir"find . -type d -name CVS -exec rm -r {} \;# Debug src/inc dir -- put everything (sources, headers) into a single blobmakedir "$altsrc" -pcd "$srcdir"x_dirs=`find . -type d -print`for ddd in $x_dirs ; do cd "$srcdir/$ddd" cp -p *.[ch]pp "$altsrc" >/dev/null 2>&1 cp -p *.[ch] "$altsrc" >/dev/null 2>&1 cp -p *.inl "$altsrc" >/dev/null 2>&1donecd "$incdir"x_dirs=`find . -type d -print`for ddd in $x_dirs ; do cd "$incdir/$ddd" cp -p *.* "$altsrc" >/dev/null 2>&1done# Librariesfor i in 'Debug' 'Release' ; do for j in '' 'DLL' ; do if test -d "$builddir"/compilers/msvc_prj/lib/$i$j ; then makedir "$target/$i$j" -p cd "$builddir"/compilers/msvc_prj/lib/$i$j cp -p *.lib "$target/$i$j" fi if test -d "$builddir"/compilers/msvc_prj/dll/bin/$i$j ; then cd "$builddir"/compilers/msvc_prj/dll/bin/$i$j cp -p *.lib *.dll *.exp "$target/$i$j" fi donedone# Executablesmakedir "$bindir" -pfor i in 'DLL' '' ; do if test -d "$builddir"/compilers/msvc_prj/bin/Release$i ; then if ls "$builddir"/compilers/msvc_prj/bin/Release$i/*.exe >/dev/null 2>&1 ; then cd "$builddir"/compilers/msvc_prj/bin/Release$i cp -p *.exe *.dll *.exp "$bindir" break fi fidonecd "$builddir"/compilers/msvc_prj# Gbench public installationif test -d "$builddir"/compilers/msvc_prj/dll/bin/ReleaseDLL/gbench ; then makedir "$bindir"/gbench -p cp -pr "$builddir"/compilers/msvc_prj/dll/bin/ReleaseDLL/gbench/* "$bindir"/gbenchfi# CVS checkout info filecp -p "$builddir"/cvs_info "$target"exit 0# # ===========================================================================# PRODUCTION $Log: install.sh,v $# PRODUCTION Revision 1000.2 2004/06/01 17:36:53 gouriano# PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.37# PRODUCTION# ===========================================================================#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -