?? make-source-dependencies
字號:
#!/bin/sh ## make-source-dependencies:# this shell script prints GNU Make compatible# input from a list of prototype instantiations read# (one per line) from the input.## instantiations instances: /tmp/make-source-dependencies.$$.0# (cleaned up) instantiation instances: /tmp/make-source-dependencies.$$.1# sorted list of generic prototypes (culled from above): /tmp/make-source-dependencies.$$.2while read instance ; doecho "${instance}" done >> /tmp/make-source-dependencies.$$.0# instancescat /tmp/make-source-dependencies.$$.0 | \ gawk '{ for (i = 1 ; i <= NF ; i ++) print $i ; }' > /tmp/make-source-dependencies.$$.1# prototypescat /tmp/make-source-dependencies.$$.0 | \ gawk -F. '{ print $NF; }' | sort | uniq > /tmp/make-source-dependencies.$$.2for t in `cat /tmp/make-source-dependencies.$$.2` ; do if [ -f ${PROTO_SOURCE}/${t}.hP ] ; then cat /tmp/make-source-dependencies.$$.1 | \ gawk -F. '$NF == "'${t}'" { printf "$(PC)/%s.h ", $0 ; }' ; echo ": \$(${PP})/${t}.hP" ; echo ' $(make-proto-file) $(prepend-proto-includes)' ; echo ; fi; if [ -f ${PROTO_SOURCE}/${t}.ccP ] ; then cat /tmp/make-source-dependencies.$$.1 | \ gawk -F. '$NF == "'${t}'" { printf "$(PC)/%s.cc ", $0 ; }' ; echo ": \$(${PP})/${t}.ccP" ; echo ' $(make-proto-file)' ; echo ; fi;done;rm -f /tmp/make-source-dependencies.$$.0rm -f /tmp/make-source-dependencies.$$.1rm -f /tmp/make-source-dependencies.$$.2
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -