common: Adjust makefile git urls for GH migration

This commit is contained in:
Joey Riches 2023-08-14 10:41:38 +01:00
parent 779ffe36c3
commit 4f756c2422

View file

@ -31,18 +31,18 @@ upcheck:
@[ ! -d "$(subst .pull,,$@)" ] || ( \
echo "Pulling $(subst .pull,,$@)..."; \
git_repo=$(subst .pull,,$@); \
git -C "$(subst .pull,,$@)" remote set-url origin "https://dev.getsol.us/source/$${git_repo}.git" || exit 0; \
git -C "$(subst .pull,,$@)" remote set-url --push origin "ssh://vcs@dev.getsol.us:2222/source/$${git_repo}.git" || exit 0; \
git -C "$(subst .pull,,$@)" remote set-url origin "https://github.com/solus-packages/$${git_repo}.git" || exit 0; \
git -C "$(subst .pull,,$@)" remote set-url --push origin "git@github.com:solus-packages/$${git_repo}.git" || exit 0; \
git -C "$(subst .pull,,$@)" pull || exit 0; \
)
%.clone:
@[ -d "$(subst .clone,,$@)" ] || ( \
git_repo=$(subst .clone,,$@); \
git clone "https://dev.getsol.us/source/$${git_repo}.git" || exit 0; \
git clone "https://github.com/solus-packages/$${git_repo}.git" || exit 0; \
cd $${git_repo}; \
git remote set-url origin "https://dev.getsol.us/source/$${git_repo}.git"; \
git remote set-url --push origin "ssh://vcs@dev.getsol.us:2222/source/$${git_repo}.git"; \
git remote set-url origin "https://github.com/solus-packages/$${git_repo}.git"; \
git remote set-url --push origin "git@github.com:solus-packages/$${git_repo}.git"; \
)
%.clean: