whitty / upbuild

Simple directory tree build helper
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Allow mapping of return codes #6

Closed whitty closed 11 years ago

whitty commented 11 years ago

Some tools return different codes for "success" and "success with warnings" It would be niec to decide to squash "success with warnings" returns into success (or not) by maping return codes.

whitty commented 11 years ago

Fixing odd error codes

Some build tools return error codes that may not represent an error. Use the option @retmap to provide a comma separated list of return-code mappings - integer=>integer.

uv4
# uv4 returns 1 if errors occurred - our library includes
# suck so map 1 to a success
@retmap=1=>0
-j0
-b
project.uvproj
-o log.txt

The following build will execute "uv4 -j0 -b project.uvproj -o log.txt" as above, but return-value of 1 will be mapped to success (0)