Artifact 41fecd68171364150e5da059421197598b3c76f4:
- File headers.awk — part of check-in [8ed457fd51] at 2014-05-17 04:39:52 on branch trunk — Fixed rewriting relative paths to headers and added various patches (user: rkeene, size: 484) [annotate] [blame] [check-ins using]
/^# [0-9][0-9]* /{ file = $3; gsub(/^"/, "", file); gsub(/"$/, "", file); while(sub(/\/\/*[^\/]*\/\.\.\/\/*/, "/", 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]; } }