📄 configure
字号:
#!/bin/bashprefix_path="/usr/local"make_in=makefile.in.inconfig_h=config.hver=0.0.1help_usage(){ cat <<endUsage : $0 [ --prefix=..] [--shell= ...] [ --debug ]endexit 1;}do_path(){ echo -n -e "ops=-Dshell_path=\\\"$shell_path\\\"" >$make_in# echo -n -e "\\ \n -Dprefix_path=\\\"$prefix_path\\\"" >>$make_inif [ -f /etc/magic-release ];then echo -e -n "\\" >>$make_in echo -e -n "\n" -Dmagic_linux >>$make_infi [ -z $debug ] ||echo -n -e " -D__${debug}__\n">>$make_in echo -n -e "\nshell_path=$shell_path\n" >>$make_in echo -n -e "prefix=$prefix_path\n" >>$make_incat <<eof >$config_h//#define shell_path "$shell_path"//testin configure .eof}do_pro(){ echo -n -e "ver=$ver\n" >>$make_in sed -i -e "s|Exec=.*|Exec=${prefix_path}/bin/sudo_pppoe|g" gtk-pppoe.desktop}do_args(){ for o in $@ do case $o in --prefix=*) prefix_path=${o#--prefix=}; ;; --shell=*) shell_path={o#--shell=} ;; --debug*) debug="debug" ;; *) help_usage ;; esac done [ -z $shell_path ] &&shell_path="$prefix_path/share/gtk-pppoe"}do_args $@do_pathCC=`which gcc`if [ $? == 0 ] ;thenecho -n "Set CC to $CC "cat <<eof >> $make_inCC=$CCeoffido_pro#touch *.c *.hmake clean 2>&1 >/dev/nullecho Done.echo "You can run \"make\" ."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -