Deprecated see https://github.com/tonic-team/synchronisation_scripts

julien colomb 4f43730a64 Merge branch 'master' of gin4RRI/gin-scripts into add-gitmessage 3 years ago
initiation_scripts 4f43730a64 Merge branch 'master' of gin4RRI/gin-scripts into add-gitmessage 3 years ago
old 56ee62c8c8 cleaning up 3 years ago
README.md 7b191f70cd Update 'README.md' 3 years ago
sync d7d9799fb4 back to name and not numbers, 2 3 years ago
sync.bat f082cb2b80 Update 'sync.bat' 3 years ago

README.md

Scripts for working with GIN

Scripts for working with GIN server using the GIN client.

TONIC development

After working on bash script to create new repositories and submodules, for example with:

sh create_researchrepo organisation projectname projectteam 
projectteam is optional

example:
sh create_researchrepo gin4rri testproject testproject 

We are working on TONIC, an application that will expand GIN functionalities to create research organisation and research repositories from templates. The documentation is visible in tonic-PLAN

Bash script for Linux and macOS

sync: Run from inside a repository to upload any local changes to GIN using the GIN CLI.

  • Assumes the repository is already initialised.
  • Does not work with submodules.
  • Synchronises changes made remotely (on the server) and locally (on the local machine).
  • Does not download large file content by default.
    • Uncomment lines 40 and 41 to perform a full download at the end of the run. The line should be gin get-content . and the following line should be checkerror ....
  • Double clicking on the file in a file browser should run the script in a terminal. If the script succeeds, the terminal closes immediately. If there is an error, it will print an error message and wait for the user to press [Enter] or close the window.

Batch script for Windows

sync.bat: Run from inside a repository to upload any local changes to GIN using the GIN CLI.

Note: This script has not been fully tested yet

  • Assumes the repository is already initialised.
  • Does not work with submodules.
  • Synchronises changes made remotely (on the server) and locally (on the local machine).
  • Does not download large file content by default.
    • Uncomment lines 26 and 27 to perform a full download at the end of the run. The line should be gin get-content . and the following line should be CALL :checkerror ....
  • Double clicking on the file in a file browser should run the script in a terminal. If the script succeeds, the terminal closes immediately. If there is an error, it will print an error message and wait for the user to press [Enter] or close the window.

Old scripts

The old directory contains old upload scripts that were written while testing different use cases. They shouldn't be used in their current state, but they may be useful for the future.