diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-02-18 19:25:56 +0000 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-18 12:47:01 -0700 |
commit | d6f55492af3cb82b0113fe6beac0f3494b6e2956 (patch) | |
tree | b8c84d9d35bce69d33b5d82f69ca92e4a602926c /bin | |
parent | 205c9659cffb5f5e7632cabd20938038e7ba2c7b (diff) | |
download | external_mesa3d-d6f55492af3cb82b0113fe6beac0f3494b6e2956.zip external_mesa3d-d6f55492af3cb82b0113fe6beac0f3494b6e2956.tar.gz external_mesa3d-d6f55492af3cb82b0113fe6beac0f3494b6e2956.tar.bz2 |
Make mklib propogate all errors
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mklib | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -24,6 +24,12 @@ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# propagate any errors +function errtrap { + es=$? + exit $es +} +trap errtrap ERR # Given a list of files, look for .a archives and unpack them. # Return the original list of files minus the .a files plus the unpacked files. |