made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
12
gitportable/usr/share/awk/processarray.awk
Normal file
12
gitportable/usr/share/awk/processarray.awk
Normal file
@@ -0,0 +1,12 @@
|
||||
function process_array(arr, name, process, do_arrays, i, new_name)
|
||||
{
|
||||
for (i in arr) {
|
||||
new_name = (name "[" i "]")
|
||||
if (isarray(arr[i])) {
|
||||
if (do_arrays)
|
||||
@process(new_name, arr[i])
|
||||
process_array(arr[i], new_name, process, do_arrays)
|
||||
} else
|
||||
@process(new_name, arr[i])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user