1# Line by line summary: 2# Until we find the first */ or // { 3# In sections between /* and */ (that is, a block comment) { 4# substitute @version WHATEVER with @version and the 5# cmake-substituted version string. 6# } 7# } 8 90,/[*/][/]/ { 10 /\/\*/,/\*\// { 11 s_([@\\])version(\s*).*$_\1version\2@version@_1g 12 } 13}