Add scan script

This commit is contained in:
Guus Waals 2025-05-27 23:19:14 +08:00
parent f2ca59b3b1
commit 04b92cbd08
1 changed files with 19 additions and 0 deletions

19
game_re/scan_sources Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
script_dir=$(readlink -f $(dirname "$0"))
tool=$script_dir/../tooling/bin/r3_gh_tool
set -e
pushd $script_dir
file_list=files.txt
rm -f $file_list
for dir in gh_auto gh_stub gh_fix; do
for file in $dir/*.cxx; do
echo $file >>$file_list
done
done
$tool @$file_list
popd