Documentation: fix kbuild typos and wording
[linux-2.6/libata-dev.git] / drivers / md / unroll.awk
blobc6aa03631df86d7837ea56d28d6059799803ef5b
2 # This filter requires one command line option of form -vN=n
3 # where n must be a decimal number.
5 # Repeat each input line containing $$ n times, replacing $$ with 0...n-1.
6 # Replace each $# with n, and each $* with a single $.
8 BEGIN {
9 n = N + 0
12 if (/\$\$/) { rep = n } else { rep = 1 }
13 for (i = 0; i < rep; ++i) {
14 tmp = $0
15 gsub(/\$\$/, i, tmp)
16 gsub(/\$\#/, n, tmp)
17 gsub(/\$\*/, "$", tmp)
18 print tmp