rabbitizer/tools/rs_table_gen.sh
2023-05-02 16:41:02 -04:00

19 lines
465 B
Bash
Executable File

#!/bin/bash
# SPDX-FileCopyrightText: © 2022-2023 Decompollaborate
# SPDX-License-Identifier: MIT
set -e
INPUT_FILE=$1
OUTPUT_FILE=$2
echo "/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */" > ${OUTPUT_FILE}
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 ../include ${INPUT_FILE} >> ${OUTPUT_FILE}