How to get around MacPorts assuming that Exit code: 1 is a failure?

Eric Gallager egall at gwmail.gwu.edu
Sat Feb 8 17:22:52 PST 2014


I am working on a Portfile from which I want to call the `unifdef` command.
The manpage for `unifdef` says: "Exit status is 0 if output is exact copy
of input, 1 if not, 2 if trouble." The whole reason I am running `unifdef`
is to change the output, so I *want* it to return 1. However, when I put
this in my Portfile, it interprets this as a failure. Is there any way that
I can get around this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20140208/58391185/attachment.html>


More information about the macports-dev mailing list