Skip to content

Commit 1aae732

Browse files
committed
Add instructions on how to deal with license files
1 parent 40a9bac commit 1aae732

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,19 @@ on if you need to extend or redo your analysis.
339339
remote resources, see [ReproNim/reproman PR#438](https://github.com/ReproNim/reproman/pull/438);
340340
- a copy of the dataset is made available from [`///repronim/ds000003-qc`](http://datasets.datalad.org/?dir=/repronim/ds000003-qc)
341341
and [https://github.com/ReproNim/ds000003-qc]().
342+
- if you would like to create `licenses/` folder in your project datasets
343+
to e.g. contain license for freesurfer, then you better add them to git-annex.
344+
Following commands provide one way to do it:
345+
346+
```shell
347+
mkdir licenses
348+
# instruct git-annex to add license files to annex, but this added file with instructions to git
349+
echo -e '* annex.largefiles=anything\n.gitattributes annex.largefiles=nothing' > licenses/.gitattributes
350+
datalad save -m "Add licenses must go into git-annex so I could avoid sharing them" licenses/.gitattributes
351+
cp ~/.freesurfer-license licenses/freesurfer
352+
datalad save -m 'added freesurfer license' licenses/freesurfer
353+
```
354+
342355
343356
344357
# Installation

0 commit comments

Comments
 (0)