1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #!/usr/bin/env bash
- loc=$(dirname $0)
- projectdir=$(git -C ${loc} rev-parse --show-toplevel)
- pushd ${loc} > /dev/null
- sh .scripts/setginserver
- if ! gin info; then
- echo "set gin login"
- gin login
- else
- echo "gin logged"
- fi
- if test -f "00repo_needs_initialisation00.txt" ;
- then
- echo "running project repository initiation (first run)"
- sh .scripts/template_init.command
- fi
- if grep -q 06_dissemination ".gitmodules";
- then
- if (test -f "06_dissemination/README_DISSEMINATION.md") ;
- then
- echo "submodules are initialised"
- else
- echo "initialising submodules"
- gin git submodule update --init --recursive
- gin git submodule foreach gin init
- fi
- else
- echo "not a tonic repo, please initialise submodules manually if there are any"
- fi
- usage() {
- echo "$0 <sync-option>"
- echo
- echo "<sync-option> The sync option defines what to do with the content of large files."
- echo " It should be one of the following values:"
- echo " download - Download all large file content from the server"
- echo " keep - Keep all large file content but do not download missing large files"
- echo " remove - Do not download large files and remove existing local large file content"
- exit 1
- }
- syncopt="remove"
- echo "start synchronisation in "$syncopt" mode, close window to cancel. change mode by changing the code in a text application"
- sh .scripts/GIN-SYNC
|