Switch Makefile back to https repo urls

Update directive will update repo urls before pulling
This commit is contained in:
Evie Litherland-Smith 2023-05-28 20:21:16 +01:00
parent 3764e5cee5
commit 2cc371ed63

View file

@ -1,8 +1,8 @@
$(eval HOSTNAME=$(shell hostname))
NIXOS_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/nixos.git
NVIM_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/nvim.git
HYPR_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/hyprland.git
WAYBAR_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/waybar.git
NIXOS_REPO := https://git.xenia.me.uk/xenia/nixos.git
NVIM_REPO := https://git.xenia.me.uk/xenia/nvim.git
HYPR_REPO := https://git.xenia.me.uk/xenia/hyprland.git
WAYBAR_REPO := https://git.xenia.me.uk/xenia/waybar.git
HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)/$(USER).nix
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
BIN_DIR := $(HOME)/.local/bin
@ -14,6 +14,9 @@ default: nvim hypr waybar
[ -e /etc/nixos/ ] && make nixos || make home
update: $(CONFIG_DIR)/nvim $(CONFIG_DIR)/hypr $(CONFIG_DIR)/waybar
git -C $(CONFIG_DIR)/nvim remote set-url origin $(NVIM_REPO)
git -C $(CONFIG_DIR)/hypr remote set-url origin $(HYPR_REPO)
git -C $(CONFIG_DIR)/waybar remote set-url origin $(WAYBAR_REPO)
for repo in $?; do git -C $$repo pull --ff-only; done
clean: