summaryrefslogtreecommitdiff
path: root/dump_sections
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-01-27 19:10:42 -0600
committerBryan Bishop <kanzure@gmail.com>2013-01-27 19:10:42 -0600
commit7b3699bb8f4050b1365140e3ea7284874356640a (patch)
tree8428bd2eb730ba3b2bb702bf452ef777423b3d9d /dump_sections
parenta9347aa296c25a3dc582f89c8c1f4849d3da30ad (diff)
dump_sections - tool to dump a skeleton asm file
original-commit-id: eb6cb9812da6a75dc86f64be27d9ef419963790c
Diffstat (limited to 'dump_sections')
-rwxr-xr-xdump_sections14
1 files changed, 14 insertions, 0 deletions
diff --git a/dump_sections b/dump_sections
new file mode 100755
index 0000000..362318f
--- /dev/null
+++ b/dump_sections
@@ -0,0 +1,14 @@
+#!/bin/bash
+# This wraps dump_sections.py so that other python scripts can import the
+# functions. If dump_sections.py was instead called dump_sections, then other
+# python source code would be unable to use the functions via import
+# statements.
+
+# figure out the path to this script
+cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+# construct the path to dump_sections.py
+secpath=$cwd/dump_sections.py
+
+# run dump_sections.py
+$secpath $1