fxsdk: add a sensible .gitignore when creating projects

This commit is contained in:
Lephenixnoir 2020-12-30 20:58:37 +01:00
parent f461c08a17
commit 203572b2af
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 10 additions and 0 deletions

9
fxsdk/assets/gitignore Normal file
View file

@ -0,0 +1,9 @@
# Build files
/build-fx
/build-cg
/*.g1a
/*.g3a
# Common IDE files
*.sublime-project
*.sublime-workspace

View file

@ -115,6 +115,7 @@ fxsdk_new_project_interactive() {
assets="$PREFIX/share/fxsdk/assets"
cp "$assets"/Makefile "$1"
cp "$assets"/gitignore "$1"/.gitignore
cp "$assets"/main.c "$1"/src
cp "$assets"/icon-fx.png "$1"/assets-fx
cp "$assets"/icon-cg-uns.png "$1"/assets-cg