summaryrefslogtreecommitdiff
path: root/build-aux/stack.c.gen
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/stack.c.gen')
-rwxr-xr-xbuild-aux/stack.c.gen17
1 files changed, 11 insertions, 6 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen
index 9325791..713630a 100755
--- a/build-aux/stack.c.gen
+++ b/build-aux/stack.c.gen
@@ -1,9 +1,14 @@
-#!/usr/bin/env bash
-# stack.c.gen - Analyze stack sizes for compiled objects
+#!/usr/bin/env python3
+# build-aux/stack.c.gen - Analyze stack sizes for compiled objects
#
-# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
-for obj in "$@"; do
- echo "// $obj"
-done
+import os.path
+import sys
+
+sys.path.insert(0, os.path.normpath(os.path.join(__file__, "..")))
+import measurestack # pylint: disable=wrong-import-position
+
+if __name__ == "__main__":
+ measurestack.main()