📄 bootstrap
字号:
#!/bin/sh# ***************************************************************************# bootstrap : Set up config.mak# ***************************************************************************# Copyright (C) 2003 VideoLAN# $Id: bootstrap 10940 2005-05-09 15:55:46Z fkuehne $## Authors: Christophe Massiot <massiot@via.ecp.fr>## 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, USA.# ***************************************************************************if test "$#" -gt "1"; then echo "Usage: $0 <host>" >&2 echo " Prepare config.mak file." >&2 exit 1fiLANG=Cexport LANGset -eset -xBUILD=`gcc -dumpmachine`if test "$#" = "1"; then HOST="$1"else HOST="$BUILD"fiecho -e "# Automatically generated by bootstrap.\n# Make changes if you know what you're doing.\n" >| config.makecho "BUILD = $BUILD" >> config.makecho "HOST = $HOST" >> config.makcase $HOST in powerpc-apple-darwin8 | ppc-darwin) echo "EXTRA_CPPFLAGS = -no-cpp-precomp" >> config.mak echo "CONTRIB_URL = http://download.videolan.org/pub/videolan/devtools/contrib-macosx.tar.bz2" >> config.mak ;; i586-pc-beos) echo "EXTRA_LDFLAGS = -lnet" >> config.mak ;; *) ;;esacif which curl >/dev/null; then echo "WGET = curl -O" >> config.makelif wget --version >/dev/null 2>&1; then echo "WGET = wget" >> config.makelse echo "You need at least wget or curl to fetch the packages." >&2 exit 1fiif test -f /sw/bin/svn; then echo "SVN = /sw/bin/svn" >> config.makelif test -f /usr/local/bin/svn; then echo "SVN = /usr/local/bin/svn" >> config.makelif svn help >/dev/null 2>&1; then echo "SVN = svn" >> config.makelse echo "You do not have a subversion client installed." >&2fiecho "PREFIX = `pwd`" >> config.mak
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -