bootstrap.sh

来自「mpeg4代码,比较具体」· Shell 代码 · 共 58 行

SH
58
字号
#!/bin/sh## This file builds the configure script and copies all needed files# provided by automake/libtoolize## $Id: bootstrap.sh,v 1.1.2.1 2003/03/17 23:24:20 edgomez Exp $############################################################################### Detect the right autoconf script############################################################################### Find a suitable autoconfAUTOCONF="autoconf2.50"$AUTOCONF --version 2>/dev/null 1>/dev/nullif [ $? -ne 0 ] ; then    AUTOCONF="autoconf"	$AUTOCONF --version 2>/dev/null 1>/dev/null    if [ $? -ne 0 ] ; then        echo "Autoconf not found"        exit -1    fifi# Tests the autoconf versionAC_VER=`$AUTOCONF --version | head -1 | sed 's/'^[^0-9]*'/''/'`AC_MAJORVER=`echo $AC_VER | cut -f1 -d'.'`AC_MINORVER=`echo $AC_VER | cut -f2 -d'.'`if [ "$AC_MAJORVER" -lt "2" ]; then    echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"    exit -1fiif [ "$AC_MINORVER" -lt "50" ]; then    echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"    exit -1fi############################################################################### Bootstraps the configure script##############################################################################echo "Creating ./configure"$AUTOCONFecho "Copying files provided by automake"automake -c -a 1>/dev/null 2>/dev/nullecho "Copying files provided by libtool"libtoolize -f -c 1>/dev/null 2>/dev/nullecho "Removing files that are not needed"rm -rf autom4*rm -rf ltmain.sh

⌨️ 快捷键说明

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