Skip to content

Instantly share code, notes, and snippets.

@marcusmueller
Created May 5, 2024 22:19
Show Gist options
  • Save marcusmueller/9280bc7482d4cb616d2e303c8afcf430 to your computer and use it in GitHub Desktop.
Save marcusmueller/9280bc7482d4cb616d2e303c8afcf430 to your computer and use it in GitHub Desktop.
#!/bin/sh
modname="foobar"
blockname="nothing"
blocktype="hier"
rm -rf "gr-${modname}"
git commit --allow-empty -m "prior to modtool newmod"
gr_modtool newmod "${modname}"
echo "build/" > "gr-${modname}/.gitignore"
git add .gitignore "gr-${modname}/.gitignore"
git commit -m "gitignores"
git add "gr-${modname}"
git commit -m "Fresh OOT"
cd gr-"${modname}"
gr_modtool add --add-cpp-qa --block-type "${blocktype}" --copyright dontcare --lang cpp "${blockname}"
git add .
git commit -m "Added block"
mkdir build
cd build
cmake ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment