?? makelegacy.sh
字號(hào):
#!/bin/sh# MakeLegacy.sh: support old-style Makefile in autotooled source tree# copyright by the mpg123 project - free software under the terms of the LGPL 2.1# see COPYING and AUTHORS files in distribution or http://mpg123.de# initially written by Nicholas J. Humfrey# Check that configure.ac existsif test ! -f configure.ac; then echo "Can't find configure.ac" exitfi#AC_INIT([mpg123], [0.60-devel], [mpg123-devel@lists.sourceforge.net])PACKAGE_NAME=`sed -n 's/^AC_INIT(\[\([^,]*\)\], .*$/\1/p' < configure.ac`PACKAGE_VERSION=`sed -n 's/^AC_INIT([^,]*, \[\([^,]*\)\], .*$/\1/p' < configure.ac`PACKAGE_BUGREPORT=`sed -n 's/^AC_INIT([^,]*, [^,]*, \[\(.*\)\])$/\1/p' < configure.ac`cd src# Write out our own very basic config.hecho "Creating basic config.h to reproduce pre-autoconf days."cp config.h.legacy config.h &&{ echo "/* added by MakeLegacy.sh */" echo "#define PACKAGE_NAME \"$PACKAGE_NAME\"" echo "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" echo "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\""} >> config.h &&exec make -f Makefile.legacy $* ||echo "some error!?"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -