Artifact b5faccf87a874ab09db879b78198643edb92ee54:
- File headers.awk — part of check-in [e8cbf3c10e] at 2014-05-05 17:16:00 on branch trunk — Updated to keep GCC headers into gcc directory (user: rkeene, size: 431) [annotate] [blame] [check-ins using]
/^# [0-9][0-9]* /{ file = $3; gsub(/^"/, "", file); 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]; } }