Cleanup
authorAlexis Christoforides <alexis@thenull.net>
Fri, 14 Oct 2016 23:11:53 +0000 (19:11 -0400)
committerAlexis Christoforides <alexis@thenull.net>
Fri, 14 Oct 2016 23:11:53 +0000 (19:11 -0400)
bockbuild/mac-sdk-xamarin/profile.py

index 72f8cb291c473707f07665c8c424a2bde3314491..8fd234698535f52271e1dba4a45c5a5ebf3ee22d 100755 (executable)
@@ -1,5 +1,3 @@
-#!/usr/bin/python -u -OO
-
 import itertools
 import os
 import re
@@ -11,11 +9,6 @@ import traceback
 
 from glob import glob
 
-if __name__ == "__main__":
-    sys.path.append(os.path.realpath('../..'))
-    sys.path.append(os.path.realpath('../../packages'))
-    sys.path.append(os.path.realpath('../mono-mac'))
-
 from MonoReleaseProfile import MonoReleaseProfile
 from bockbuild.util.util import *
 
@@ -94,14 +87,3 @@ class MonoXamarinPackageProfile(MonoReleaseProfile):
                 error("%s IS NOT SIGNED:" % pkg)
         finally:
             os.chdir(oldcwd)
-
-if __name__ == "__main__":
-    try:
-        MonoXamarinPackageProfile().build()
-    except Exception as e:
-        exc_type, exc_value, exc_traceback = sys.exc_info()
-        error('%s (%s)' % (e, exc_type.__name__), more_output=True)
-        error(('%s:%s @%s\t\t"%s"' % p for p in traceback.extract_tb(
-            exc_traceback)[-3:]), more_output=True)
-    except KeyboardInterrupt:
-        error('Interrupted.')