Artifact d6d1f90c6de8f7f51af07e6319e193ce078e34f1:
- File headers.awk — part of check-in [c75ccc535c] at 2014-05-06 06:05:06 on branch trunk — Updated to normalize file pathnames (user: rkeene, size: 477) [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]; } }