Skip to content

Commit 0de8f43

Browse files
committed
Make parse_config actually python
1 parent 0afb108 commit 0de8f43

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AC_PROG_CXX
1414
AC_PROG_RANLIB
1515
AM_PROG_AR
1616
AC_CONFIG_COMMANDS([config.yml],
17-
[./parse_config.sh > src/calls.h])
17+
[python3 parse_config.py > src/calls.h])
1818
AC_CONFIG_HEADERS([config.h])
1919
AC_CONFIG_FILES([
2020
Makefile

parse_config.sh renamed to parse_config.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
#!/bin/sh
2-
# parse_config.h
1+
# parse_config.py
32
# author: axtlos / axtloss <axtlos@disroot.org>
43
# SPDX-LICENSE: GPL-3.0-ONLY
54

65
# Converts a yaml syscall-intercept configuration to a
76
# header file to be used by syscall-intercept
8-
script=`cat $0 | tail -n +12`
9-
python -c "$script"
10-
exit
11-
# PYTHON:
127
import yaml
138

149

0 commit comments

Comments
 (0)