📄 autogen.sh
字号:
#!/bin/sh## Reconfigure the whole project.## usage: autogen.sh## This script will rerun all auto tools. It is for the developer# only. If you don't know anything about automake/autoconf, do# never execute this script.## ATTENTION:# You need automake-1.4-p5 and autoconf-2.13, otherwise strange things could# happen during the build process.#srcdir="`dirname $0`"test -z "$srcdir" && srcdir=.THEDIR="`pwd`"cd "$srcdir"export AUTOMAKE AUTOCONF AUTOHEADER ACLOCALstatus="fail"for AUTOMAKE in automake-1.4 automake14 automakedo AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | cut -d ' ' -f 4 | cut -c -3) 2>/dev/null` if [ $? != 0 ] then continue fi if [ "$AUTOMAKE_VER" = "1.4" ] then status="" ACLOCAL=aclocal`expr "$AUTOMAKE" : 'automake\(.*\)'` break fidoneif [ -n "$status" ]then echo "You need to use automake version 1.4 (preferrable 1.4-p5)." echo "You are using `automake --version | head -n 1`." echo exit 1fistatus="fail"for AUTOCONF in autoconf-2.13 autoconf213 autoconfdo AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | cut -d ' ' -f 3 | cut -c -4) 2>/dev/null` if [ $? != 0 ] then continue fi if [ "$AUTOCONF_VER" = "2.13" ] then status="" break fidoneif [ -n "$status" ]then echo "You need to use autoconf version 2.13." echo "You are using `autoconf --version | head -n 1`." echo exit 1fifor AUTOHEADER in autoheader-2.13 autoheader213 autoheaderdo AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | cut -d ' ' -f 3 | cut -c -4) 2>/dev/null` if [ $? != 0 ] then continue fi if [ "$AUTOCONF_VER" = "2.13" ] then status="" break fidoneif [ -n "$status" ]then echo "You need to use autoconf version 2.13." echo "You are using `autoconf --version | head -n 1`." echo exit 1fi# to see what is executedset -xlibtoolize --copy --force${ACLOCAL}${AUTOCONF}${AUTOHEADER}#${AUTOMAKE} --foreign --add-missing --copy${AUTOMAKE} --gnu --add-missing --copyif [ "$1" = "--noconfigure" ]; then exit 0;ficd "$THEDIR"if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then $srcdir/configure --prefix=/opt/cdk4nios "$@"else $srcdir/configure "$@"fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -