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

📄 libbind.sh

📁 被广泛使用的域名服务(DNS)软件
💻 SH
字号:
#!/bin/sh# Author: Eduard Vopicka <eda@vse.cz> 01-May-97## This script takes lib/libbind.a and creates port/sco50/libbind.a# and port/sco50/libbind.so. Depending on the compilation options,# only one of the resulting libraries is useful. This is why we need# the extra "tricky" compilation pass.TMPDIR=/tmp/tmpdir.$$LIBBIND=../../lib/libbind.aLIBPORT=../libport.aNEWBIND=libbind.a				### *** Don't change anything below this point *** ###case "$NEWBIND" in  /*) continue;;  *)  NEWBIND="`pwd`/$NEWBIND"esacNEWBINDSO=`/bin/dirname $NEWBIND`/`/bin/basename $NEWBIND .a`.soerr() {  #rm -rf $TMPDIR  echo ""  echo "ERROR: Something went wrong, sorry..."  echo ""  exit 1}echo "Current directory: `pwd`"case "$LIBBIND" in  /*) continue;;  *)  LIBBIND="`pwd`/$LIBBIND"esac[ -f "$LIBBIND" ] || {  echo 'Unable to find libbind.a. Sorry...'  exit 1}echo "Found libbind.a: $LIBBIND"case "$LIBPORT" in  /*) continue;;  *)  LIBPORT="`pwd`/$LIBPORT"esac[ -f "$LIBPORT" ] || {  echo 'Unable to find libport.a. Sorry...'  exit 1}echo "Found libport.a: $LIBPORT"[ -f /tmp/tmp.$$ ] && {  echo "File/directory $TMPDIR already exists. I am not"  echo "clever enough to continue. Sorry, please try again."  exit 1}mkdir "$TMPDIR" || {  echo "Unable to create temporary directory $TMPDIR"  exit 1}( cd $TMPDIR || {    echo "Unable to chdir to $TMPDIR"    exit 1  }  #set -x  /bin/ar x "$LIBBIND" || exit 1  /bin/rm ftruncate.o gettimeofday.o mktemp.o putenv.o || exit 1  /bin/rm readv.o setenv.o setitimer.o strcasecmp.o strdup.o || exit 1  /bin/rm strerror.o strpbrk.o strtoul.o utimes.o writev.o || exit 1  ###/bin/ar x "$LIBPORT" getrusage.o || exit 1  /bin/rm -f $NEWBIND || exit 1  /bin/rm -f $NEWBINDSO || exit 1  /bin/ar r $NEWBIND *.o || exit 1  /bin/cc -b elf -G -o $NEWBINDSO *.o || exit 1  exit 0) || errrm -rf $TMPDIR || errcat <<EOFlibbind.sh -- OK,          $NEWBIND      and          $NEWBINDSO      have been created.EOF

⌨️ 快捷键说明

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