godot-cpp-template/init.sh

6 lines
211 B
Bash
Executable File

#! /bin/sh
git submodule update --init --recursive
sed -i -e "s/EXAMPLE/$1/g" ./src/register_types.cpp ./SConstruct ./godot/bin/EXAMPLE.gdextension
mv ./godot/bin/EXAMPLE.gdextension ./godot/bin/$1.gdextension