nodebug.sh

来自「sdl的gfx开发包」· Shell 代码 · 共 24 行

SH
24
字号
#!/bin/sh## Remove the '-g' debug flag from Makefiles to build release versions# of the libraries in one go.## Run after './configure' and before 'make'.#echo "Removing debug flags from Makefile."echoTARGET="Makefile"if [ "$1" != "" ]; then TARGET="$1"fifor i in `find . -name "$TARGET" -print`; do echo "Patching $i ..." cat $i | sed 's/-g -O2/-O2 -Wl,-s/' | sed 's/-shared/-shared -Wl,-s/' >$i.new cp -f $i.new $idone

⌨️ 快捷键说明

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