📄 install_cdb.sh
字号:
#! /bin/sh# You can use this script if you want to use an external cdb lib. If you# compile php using --with-cdb the internal functions will be used and no # external library is used so that this script is not necessary.## cdb-0.75 lacks support for installing header files and creating a # library which programs can link against. This shell script fills# the gap.## $Id: install_cdb.sh,v 1.2 2002/11/04 17:53:04 helly Exp $if test -r "cdb.a" && test -r "auto-str.c" && test -r "byte.a"; then :else echo "Please execute this script in the cdb-0.75 source directory after 'make'" exit 1fiprefix=$1if test -z "$prefix"; then prefix=/usr/localfiecho "Using prefix $prefix"if mkdir -p "$prefix/include" "$prefix/lib"; then :else echo "Creating directories failed. Please become superuser." exit 1fimkdir -p tmp || exit 1cd tmpar x ../cdb.aar x ../byte.aar x ../unix.aar x ../byte.aar x ../buffer.acp ../error.o .# not really portablear r "$prefix/lib/libcdb.a" *ranlib "$prefix/lib/libcdb.a"cd ..rm -rf tmpcp cdb.h uint32.h "$prefix/include"echo "done"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -