init.sh: automatically accommodate programs with the .exe suffix
authorJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 07:08:18 +0000 (08:08 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 06:33:24 +0000 (07:33 +0100)
commit9d2dcbfcfd0b8be3d89332aafbb731935f029915
tree8d408134d7c94e332892c637de22bb1990c9f030
parenta15107ce73781f47341e347076b6d3584964eef4
init.sh: automatically accommodate programs with the .exe suffix

Automatically arrange for an invocation of "prog" to execute the
program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
may use the simpler "prog", yet still work when built on a system
that requires specifying the added suffix.
Do this by constructing a function named "prog" that invokes
"prog.exe" for each .exe file in selected directories.
* tests/init.sh (find_exe_basenames_): New function.
(create_exe_shim_functions_): New function.
(path_prepend_): Use it.
tests/init.sh