⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.awk

📁 空战游戏flacon源码
💻 AWK
字号:
#!/usr/local/bin/gawk -f

#  FUNCTION: This [g]awk script is to automatically
#  generate the "shi/targets.h" file.


# At the top of the file, dump in this header

  BEGIN {
    print " "
    print "/*"
    print "  This cludge 'enumerates' the various valid TARGETs so we"
    print "  may use them for #if tests with the BUILDING_FOR_* macros."
    print "  (SEE: shi.h)"
    print " "
    print "     ** THIS FILE IS AUTOMATICALLY GENERATED **"
    print "*/"
    print " "
    print " "
    print "#ifndef _SHI__TARGETS_H_"
    print "#define _SHI__TARGETS_H_"
    print " "
    }


# For every line (sub-directory name) that begins with "m_"
# generate a define line

  /^m_/  { print "#define SHI_CS_"  $1 "	" NR-1 }


# For every other type of line, do nothing

  { }


# Once done, finish up with this

  END {
    print " "
    print "#endif  /* _SHI__TARGETS_H_ */"
    }





⌨️ 快捷键说明

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