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

📄 init.sh.in

📁 项目描述: Fink is an attempt to bring the full world of Unix Open Source software to Darwin and Mac OS
💻 IN
字号:
# init.sh## to use the Fink hierarchy, put the following in your .profile:##  . BASEPATH/bin/init.sh### Fink - a package manager that downloads source and installs it# Copyright (c) 2001 Christoph Pfisterer# Copyright (c) 2001-2003 The Fink Team## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.## define append_path and prepend_path to add directory paths, e.g. PATH, MANPATH.# add to end of pathappend_path(){  if ! eval test -z \"\${$1##*:$2:*}\" -o -z \"\${$1%%*:$2}\" -o -z \"\${$1##$2:*}\" -o -z \"\${$1##$2}\" ; then    eval "$1=\$$1:$2"  fi}# add to front of pathprepend_path(){  if ! eval test -z \"\${$1##*:$2:*}\" -o -z \"\${$1%%*:$2}\" -o -z \"\${$1##$2:*}\" -o -z \"\${$1##$2}\" ; then    eval "$1=$2:\$$1"  fi}# setup fink related paths. we assume that the fink directories exists.if [ -z "$PATH" ]; then  PATH=BASEPATH/bin:BASEPATH/sbin:/bin:/sbin:/usr/bin:/usr/sbinelse  prepend_path PATH BASEPATH/bin:BASEPATH/sbinfiexport PATHif [ -z "$MANPATH" ]; then  MANPATH=BASEPATH/share/man:/usr/share/manelse  prepend_path MANPATH BASEPATH/share/manfiexport MANPATHif [ -z "$INFOPATH" ]; then  INFOPATH=BASEPATH/share/info:BASEPATH/info:/usr/share/infoelse  prepend_path INFOPATH BASEPATH/share/info:BASEPATH/infofiexport INFOPATHif [ -r BASEPATH/share/java/classpath ]; then  if [ -z "$CLASSPATH" ]; then    CLASSPATH=`cat BASEPATH/share/java/classpath`  else    add2classpath=`cat BASEPATH/share/java/classpath`    prepend_path CLASSPATH $add2classpath  fi  export CLASSPATHfiif [ -z "$PERL5LIB" ]; then  PERL5LIB=BASEPATH/lib/perl5else  prepend_path PERL5LIB BASEPATH/lib/perl5fiexport PERL5LIB# Add X11 paths (but only if the directories are readable)if [ -r /usr/X11R6/bin ]; then    append_path PATH /usr/X11R6/bin    export PATHfiif [ -r /usr/X11R6/man ]; then    append_path MANPATH /usr/X11R6/man    export MANPATHfi# read per-package scripts from BASEPATH/etc/profile.dif [ -d BASEPATH/etc/profile.d ]; then  for i in BASEPATH/etc/profile.d/*.sh ; do    if [ -x $i ]; then      . $i    fi  done  unset ifiPROXYHTTP=`grep ProxyHTTP BASEPATH/etc/fink.conf | grep -v "#" | cut -d " " -f2`if [ "$PROXYHTTP" != "" ]; then  HTTP_PROXY=$PROXYHTTP  http_proxy=$PROXYHTTP  export HTTP_PROXY http_proxyfiPROXYFTP=`grep ProxyFTP BASEPATH/etc/fink.conf | grep -v "#" | cut -d " " -f2`if [ "$PROXYFTP" != "" ]; then  FTP_PROXY=$PROXYFTP  ftp_proxy=$PROXYFTP  export FTP_PROXY ftp_proxyfi# eof

⌨️ 快捷键说明

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