Specify progname in error reporting
Add missing include (fix implicit declaration of tolower)
Remove (unused) defdir
Handle multiple copies of each file
Switch to c99 to be able to inline for loop iterators
Plug memory leak
Add minor missing includes in admesh/
Revert "Switch to c99 to be able to inline for loop iterators"

This reverts commit 226e363d4dae307e6970339852ff0b41761f8971.
Fix error in copy handling
Missing bit for getting copies working
Add --repeat/-r argument handling