mupen64plus-win32-deps/gawk-3.1.6-1/share/awk/readable.awk
Bobby Smiles 5b9ca0c278 Add gawk 3.1.6.
which is now needed to build mupen64plus-core.
2016-12-17 17:17:41 +01:00

16 lines
446 B
Awk

# readable.awk --- library file to skip over unreadable files
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# October 2000
BEGIN {
for (i = 1; i < ARGC; i++) {
if (ARGV[i] ~ /^[A-Za-z_][A-Za-z0-9_]*=.*/ \
|| ARGV[i] == "-")
continue # assignment or standard input
else if ((getline junk < ARGV[i]) < 0) # unreadable
delete ARGV[i]
else
close(ARGV[i])
}
}