Artifact 2b29d7a7034f021260382e0fb8782f4266b78099:
- File headers.awk — part of check-in [af00e9d27e] at 2014-05-06 06:06:19 on branch trunk — Updated to normalize correctly (user: rkeene, size: 479) [annotate] [blame] [check-ins using]
/^# [0-9][0-9]* /{ file = $3; gsub(/^"/, "", file); gsub(/"$/, "", file); while(gsub(/\/[^\/]*\/\.\.\//, "/", file)) {} destfile = file; if (!gsub(/^.*\/gcc\/.*\/include\//, "gcc/", destfile)) { if (!gsub(/^.*\/include\//, "", destfile)) { if (!gsub(/^.*\/include-fixed\//, "fix/", destfile)) { next } } } if (file ~ /</) { next; } if (file !~ /\.h$/) { next; } copy[file] = destfile; } END{ for (key in copy) { print key, copy[key]; } }