made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
19
gitportable/usr/share/awk/zerofile.awk
Normal file
19
gitportable/usr/share/awk/zerofile.awk
Normal file
@@ -0,0 +1,19 @@
|
||||
# zerofile.awk --- library file to process empty input files
|
||||
#
|
||||
# Arnold Robbins, arnold@skeeve.com, Public Domain
|
||||
# June 2003
|
||||
|
||||
BEGIN { Argind = 0 }
|
||||
|
||||
ARGIND > Argind + 1 {
|
||||
for (Argind++; Argind < ARGIND; Argind++)
|
||||
zerofile(ARGV[Argind], Argind)
|
||||
}
|
||||
|
||||
ARGIND != Argind { Argind = ARGIND }
|
||||
|
||||
END {
|
||||
if (ARGIND > Argind)
|
||||
for (Argind++; Argind <= ARGIND; Argind++)
|
||||
zerofile(ARGV[Argind], Argind)
|
||||
}
|
||||
Reference in New Issue
Block a user