game-source/klik/regex

3 lines
136 B
Text
Raw Normal View History

sed -e 's/float\([ ]\+[A-Za-z_][A-Za-z_0-9]*[ ]\+\)=[ ]\+\(-\?[0-9.]\+\);/#define\1\2/'
#sed -e 's!\(#define.*\)//\(.*\)!\1/*\2 */!'