summaryrefslogtreecommitdiff
path: root/extras/dump_sections
diff options
context:
space:
mode:
authorSanky <gsanky@gmail.com>2013-02-02 23:13:32 +0100
committerSanky <gsanky@gmail.com>2013-02-02 23:20:50 +0100
commit7df002c3e20f1b728b1d29a877c3731d4867f502 (patch)
tree14cf8cb4dc2a95f4137de1967679dd45df3c0db8 /extras/dump_sections
parent6b8d77ffb23443cac8ca8bc570c758f7b77fa109 (diff)
parent1bf1d6e3ea7b75445803ed8d01c49014adf2e114 (diff)
Merge https://github.com/kanzure/pokecrystal
Conflicts: constants.asm extras/crystal.py main.asm
Diffstat (limited to 'extras/dump_sections')
-rwxr-xr-xextras/dump_sections14
1 files changed, 14 insertions, 0 deletions
diff --git a/extras/dump_sections b/extras/dump_sections
new file mode 100755
index 000000000..362318f30
--- /dev/null
+++ b/extras/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