Last change
on this file since 1076 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
424 bytes
|
Rev | Line | |
---|
[1046] | 1 | # zerofile.awk --- library file to process empty input files
|
---|
| 2 | #
|
---|
| 3 | # Arnold Robbins, arnold@skeeve.com, Public Domain
|
---|
| 4 | # June 2003
|
---|
| 5 |
|
---|
| 6 | BEGIN { Argind = 0 }
|
---|
| 7 |
|
---|
| 8 | ARGIND > Argind + 1 {
|
---|
| 9 | for (Argind++; Argind < ARGIND; Argind++)
|
---|
| 10 | zerofile(ARGV[Argind], Argind)
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | ARGIND != Argind { Argind = ARGIND }
|
---|
| 14 |
|
---|
| 15 | END {
|
---|
| 16 | if (ARGIND > Argind)
|
---|
| 17 | for (Argind++; Argind <= ARGIND; Argind++)
|
---|
| 18 | zerofile(ARGV[Argind], Argind)
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.