summaryrefslogtreecommitdiff
path: root/scripts/macosx-sanity-check.py
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-05-10 17:42:27 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-05-10 17:42:27 (GMT)
commit203858f6b508f10743960efa88221e65deff9e91 (patch)
tree0e28d14ce91438a9282831028acfe06edceae994 /scripts/macosx-sanity-check.py
parent3e8e5fa925814c847f6778b5ff1fc9606a99ade0 (diff)
Autorun sanity check before publising
git-svn-id: http://svn.clifford.at/openscad/trunk@541 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'scripts/macosx-sanity-check.py')
-rwxr-xr-xscripts/macosx-sanity-check.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/macosx-sanity-check.py b/scripts/macosx-sanity-check.py
index a085bda..c9fcb5d 100755
--- a/scripts/macosx-sanity-check.py
+++ b/scripts/macosx-sanity-check.py
@@ -4,6 +4,8 @@
# This is be used to verify that all the dependant libraries of a Mac OS X executable
# are present and that they are backwards compatible with at least 10.5.
# Run with an executable as parameter
+# Will return 0 if the executable an all libraries are OK
+# Returns != 0 and prints some textural description on error
#
# Author: Marius Kintel <marius@kintel.net>
#
@@ -82,6 +84,7 @@ def validate_lib(lib):
return True
if __name__ == '__main__':
+ error = False
if len(sys.argv) != 2: usage()
executable = sys.argv[1]
if DEBUG: print "Processing " + executable
@@ -113,3 +116,6 @@ if __name__ == '__main__':
# print " " + str(processed[dep])
if not validate_lib(dep):
print "..required by " + str(processed[dep])
+ error = True
+ if error: sys.exit(1)
+ else: sys.exit(0)
contact: Jan Huwald // Impressum