summaryrefslogtreecommitdiffstats
path: root/bin/mklib
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2010-02-18 19:25:56 +0000
committerBrian Paul <[email protected]>2010-02-18 12:47:01 -0700
commitd6f55492af3cb82b0113fe6beac0f3494b6e2956 (patch)
treeb8c84d9d35bce69d33b5d82f69ca92e4a602926c /bin/mklib
parent205c9659cffb5f5e7632cabd20938038e7ba2c7b (diff)
Make mklib propogate all errors
Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'bin/mklib')
-rwxr-xr-xbin/mklib6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/mklib b/bin/mklib
index 2ef902287d2..68d22052c94 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -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.