fix the github-ssh `make` target

This commit is contained in:
Ștefan Talpalaru 2019-02-08 00:18:14 +01:00 committed by zah
parent 16296cbe72
commit 53acac205a
1 changed files with 5 additions and 3 deletions

View File

@ -79,10 +79,12 @@ clean:
mrproper: clean
rm -rf vendor
# for when you have write access to a repo and you want to use SSH keys
# TODO: https://stackoverflow.com/questions/39894103/can-i-override-the-url-of-a-nested-git-submodule-without-forking
# for when you want to use SSH keys
github-ssh:
sed -i 's#https://github.com/#git@github.com:#' .git/config $(NIM_DIR)/.git/config $(REPOS_DIR)/*/.git/config
sed -i 's#https://github.com/#git@github.com:#' .git/config
git config --file .gitmodules --get-regexp url | while read LINE; do \
git config `echo $${LINE} | sed 's#https://github.com/#git@github.com:#'` \
;done
#- re-builds the Nim compiler (not usually needed, because `make update` does it when necessary)
build-nim: | deps