rabbitizer/tables/tools/pyi_table_gen.sh

21 lines
520 B
Bash
Raw Permalink Normal View History

2023-04-30 21:39:05 +00:00
#!/bin/bash
2024-01-28 15:16:11 +00:00
# SPDX-FileCopyrightText: © 2023-2024 Decompollaborate
2023-04-30 21:39:05 +00:00
# SPDX-License-Identifier: MIT
set -e
INPUT_FILE=$1
OUTPUT_FILE=$2
echo "#!/usr/bin/env python3" > ${OUTPUT_FILE}
echo >> ${OUTPUT_FILE}
2024-01-28 15:16:11 +00:00
echo "# SPDX-FileCopyrightText: © 2022-2024 Decompollaborate" >> ${OUTPUT_FILE}
2023-04-30 21:39:05 +00:00
echo "# SPDX-License-Identifier: MIT" >> ${OUTPUT_FILE}
echo >> ${OUTPUT_FILE}
echo "# Automatically generated. DO NOT MODIFY" >> ${OUTPUT_FILE}
echo >> ${OUTPUT_FILE}
cpp -P -I include -I tables ${INPUT_FILE} >> ${OUTPUT_FILE}