aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fpm/cmd/new.f903
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fpm/cmd/new.f90 b/src/fpm/cmd/new.f90
index abc1d67..0d57a59 100644
--- a/src/fpm/cmd/new.f90
+++ b/src/fpm/cmd/new.f90
@@ -98,6 +98,9 @@ character(len=:,kind=tfc),allocatable :: littlefile(:)
! like realpath() or getcwd().
bname=basename(settings%name)
+ ! create NAME/.gitignore file
+ call warnwrite(join_path(settings%name, '.gitignore'), ['build/*'])
+
littlefile=[character(len=80) :: '# '//bname, 'My cool new project!']
! create NAME/README.md