adding authors file and licence creation

This commit is contained in:
Lucas Frérot 2024-12-27 18:41:18 +01:00
parent 64c901d40d
commit 09d7767a1a
No known key found for this signature in database
GPG Key ID: 03B54A50E3FBA7E8
2 changed files with 32 additions and 2 deletions

1
AUTHORS Normal file
View File

@ -0,0 +1 @@
Lucas Frérot <lucas.frerot@sorbonne-universite.fr> Sorbonne Université, CNRS, Institut Jean Le Rond dAlembert, F-75005 Paris, France

33
rtenets
View File

@ -157,14 +157,43 @@ create_tenet_file_tree() {
# ${project_name}
${project_desc}
## Dependencies
Here are the dependencies to build and run the code:
- <dependencies_list>
## Running the code
Here is how to run the code:
\`\`\`
<make_all_figures>
\`\`\`
## Tests
Here is how to run the tests:
\`\`\`
<run_all_tests>
\`\`\`
READMEMSG
info "wrote '${readme}'"
else
warning "found '${readme}', not touching"
fi
if ! [ -f AUTHORS ]; then
printf "%s\\n" "${USER} <${EMAIL}> ${AFFILIATION}" > AUTHORS
fi
local licence="COPYING"
if ! [ -f "${licence}" ]; then
info "setting licence to GPL by default, see https://www.gnu.org/licenses for more options"
curl "https://www.gnu.org/licenses/gpl-3.0.txt" > "${licence}"
fi
}
# Create git repository