aboutsummaryrefslogtreecommitdiff
path: root/tools/Internals/tools/gnu_ar.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Internals/tools/gnu_ar.py')
-rwxr-xr-xtools/Internals/tools/gnu_ar.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/Internals/tools/gnu_ar.py b/tools/Internals/tools/gnu_ar.py
index 89b4ee0..0510109 100755
--- a/tools/Internals/tools/gnu_ar.py
+++ b/tools/Internals/tools/gnu_ar.py
@@ -18,6 +18,8 @@ import tempfile
from subprocess import call, check_output
from .utils import *
+__all__ = ["GNU_AR"]
+
#*****************************************************************************#
# Discovery, configuration #
#*****************************************************************************#
@@ -82,6 +84,8 @@ def __getparams(typ, arch, lib_format, obj_format):
# Usage #
#*****************************************************************************#
def __pack(params, lib, objs):
+ """ Pack using the GNU archiver. """
+
# Set up the MRI script.
tmp_fd, tmp_path = tempfile.mkstemp(suffix='.mri')
tmp = os.fdopen(tmp_fd, mode='w')
@@ -99,7 +103,9 @@ def __pack(params, lib, objs):
os.remove(tmp_path)
return ret
-__all__ = ["GNU_AR"]
+#*****************************************************************************#
+# Main utility descriptor #
+#*****************************************************************************#
GNU_AR = {
'getparams': __getparams,
'pack': __pack