📄 autogen.sh
字号:
#!/bin/sh# Run this to generate all the initial makefiles, etc.srcdir=`dirname $0`# name of the current packagePKG_NAME=`basename \`(cd $srcdir; pwd)\``# default configure optionsconf_flags="--enable-debug --with-debug"DIE=0libtool=0gettext=0missing() { echo echo "**Error**: You must have \`$1' installed to compile $PKG_NAME." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1}(autoconf --version) < /dev/null > /dev/null 2>&1 || missing autoconfgrep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && gettext=1grep "^AC_PROG_LIBTOOL" $srcdir/configure.in >/dev/null && libtool=1if test "$gettext" -eq 1; then grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ (gettextize --version) < /dev/null > /dev/null 2>&1 || missing gettextfiif test "$libtool" -eq 1; then (libtoolize --version) < /dev/null > /dev/null 2>&1 || missing libtoolfiif test "$DIE" -eq 1; then exit 1fiif test -z "$*"; then echo "**Warning**: I am going to run \`configure' with default arguments." echo "If you wish to pass any others to it, please specify them on the" echo \`$0\'" command line." echoelse unset conf_flagsfiif test "$gettext" -eq 1; then echo "Running gettextize... Ignore non-fatal messages." echo "no" | gettextize --force --copyfiif test "$libtool" -eq 1; then echo "Running libtoolize..." libtoolize --force --copyfiecho "Running autoheader..."autoheaderecho "Running autoconf ..."autoconfecho "Creating man page ..."sh ifstat.podif test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile $PKG_NAMEelse echo Skipping configure process.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -