Install CLI tools using Homebrew
- brew.sh
-
in case of the following error:
Error: Failed to link all completions, docs and manpages:Run this command:
sudo chown -R $(whoami): /usr/local/share/zsh(from here)
Then:
brew install autoconf automake gawk make git-lfs icu4c pkg-config python3 saxon subversion pyyaml openssl@3 pipx- NB! Note the output from icu4c, gawk and make installations. Do follow the instructions on how to add them to the path in your shell environment.
- You can recall the outputs whenever by
brew info icu4c,brew info gawkandbrew info make
pipx ensurepathpipx install git+https://github.com/divvun/morph-testpipx install git+https://github.com/divvun/GiellaLTLexToolspipx install git+https://github.com/divvun/GiellaLTGramTools- Restart Terminal (Cmd+Q)
And to ensure that accented letters are properly handled by git on macOS, run the following (may require a relatively new git version, tested with 2.40.0):
git config --global core.fsmonitor true
git config --global core.quotepath false
git config --global core.precomposeunicode true
(See this for details on the Unicode issues.)
Download prebuilt binaries of gut here.
Then initialise your gut installation as follows:
gut init -r PATH_TO_DIR -t ghp_TOKEN
Replace PATH_TO_DIR and ghp_TOKEN with actual values. Generate your ghp_TOKEN by following
these instructions.
Then one can clone all language repositories with this command:
gut clone -o giellalt -r ^lang-
If gut clone fails with this message:
Cannot clone repository with git@github.com:divvun/registry.git because of failed authentication for repository
then use
gut clone -u -o giellalt -r ^lang-
instead (-u changes the protocol into https instead of ssh).
You can set the default protocos to https using the gut init command (option -u).
You can also set your default organisation with the -o option for the gut init command. Then there is no need to specify the organisation when working against the default GitHub organisation.