⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make_sharedlib_distribution

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻
字号:
#!/bin/sh# The default path should be /usr/local# Get some info from configure# chmod +x ./scripts/setsomevarsmachine=i686system=pc-linux-gnuversion=5.1.6-alphaexport machine system versionSOURCE=`pwd` CP="cp -p"MV="mv"STRIP=1DEBUG=0SILENT=0TMP=/tmpSUFFIX=""parse_arguments() {  for arg do    case "$arg" in      --debug)    DEBUG=1;;      --tmp=*)    TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;      --suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;      --no-strip) STRIP=0 ;;      --silent)   SILENT=1 ;;      *)	echo "Unknown argument '$arg'"	exit 1        ;;    esac  done}parse_arguments "$@"BASE=$TMP/my_dist$SUFFIXif [ -d $BASE ] ; then rm -r -f $BASEfimkdir -p $BASE/libfor i in \  libmysql/.libs/libmysqlclient.s{l,o}* \  libmysql/.libs/libmysqlclient*.dylib \  libmysql_r/.libs/libmysqlclient_r.s{l,o}* \  libmysql_r/.libs/libmysqlclient_r*.dylibdo  if [ -f $i ]  then    $CP $i $BASE/lib   fidone# Change the distribution to a long descriptive nameNEW_NAME=mysql-shared-$version-$system-$machine$SUFFIXBASE2=$TMP/$NEW_NAMErm -r -f $BASE2mv $BASE $BASE2BASE=$BASE2#if we are debugging, do not do tar/gzif [ x$DEBUG = x1 ] ; then exitfi# This is needed to prefer GNU tar instead of tar because tar can't# always handle long filenamesPATH_DIRS=`echo $PATH | sed -e 's/^:/. /' -e 's/:$/ ./' -e 's/::/ . /g' -e 's/:/ /g' `which_1 (){  for cmd  do    for d in $PATH_DIRS    do      for file in $d/$cmd      do	if test -x $file -a ! -d $file	then	  echo $file	  exit 0	fi      done    done  done  exit 1}## Create the result tar file#tar=`which_1 gnutar gtar`if test "$?" = "1" -o "$tar" = ""then  tar=tarfiecho "Using $tar to create archive"cd $TMPOPT=cvfif [ x$SILENT = x1 ] ; then  OPT=cffi$tar $OPT $SOURCE/$NEW_NAME.tar $NEW_NAMEcd $SOURCEecho "Compressing archive"gzip -9 $NEW_NAME.tarecho "Removing temporary directory"rm -r -f $BASEecho "$NEW_NAME.tar.gz created"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -