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

📄 bootstrap.sh

📁 这是一个压缩解压包,用C语言进行编程的,里面有详细的源代码.
💻 SH
字号:
#!/bin/sh## - Bootstrap script -## Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr>## This file builds the configure script and copies all needed files# provided by automake/libtoolize## $Id: bootstrap.sh,v 1.7 2005/05/23 09:29:43 Skal Exp $############################################################################### Detect the right autoconf script############################################################################### Find a suitable autoconfAUTOCONF="autoconf2.50"$AUTOCONF --version 1>/dev/null 2>&1if [ $? -ne 0 ] ; then    AUTOCONF="autoconf"    $AUTOCONF --version 1>/dev/null 2>&1	if [ $? -ne 0 ] ; then        echo "ERROR: '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 "ERROR: This bootstrapper requires Autoconf >= 2.50 (detected $AC_VER)"    exit -1fiif [ "$AC_MINORVER" -lt "50" ]; then    echo "ERROR: This bootstrapper requires Autoconf >= 2.50 (detected $AC_VER)"    exit -1fiLIBTOOLIZE="libtoolize"$LIBTOOLIZE --version 1>/dev/null 2>&1if [ $? -ne 0 ] ; then    LIBTOOLIZE="glibtoolize"    $LIBTOOLIZE --version 1>/dev/null 2>&1    if [ $? -ne 0 ] ; then        echo "ERROR: 'libtoolize' not found"        exit -1    fifiAUTOMAKE="automake"$AUTOMAKE --version 1>/dev/null 2>&1if [ $? -ne 0 ] ; then    echo "ERROR: 'automake' not found"	exit -1fi############################################################################### Bootstraps the configure script##############################################################################echo "Creating ./configure"$AUTOCONFecho "Copying files provided by automake"$AUTOMAKE -c -a 1>/dev/null 2>&1echo "Copying files provided by libtool"$LIBTOOLIZE -f -c 1>/dev/null 2>&1echo "Removing files that are not needed"rm -rf autom4* 1>/dev/null 2>&1 rm -rf ltmain.sh 1>/dev/null 2>&1 rm -rf *.m4 1>/dev/null 2>&1

⌨️ 快捷键说明

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