Improve update / sync deps

This commit is contained in:
gbaconni
2022-04-24 11:42:11 +02:00
parent b7643860ef
commit 7cd65fdc9e
2 changed files with 9 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/24 11:25:04 by gbaconni ### lausanne.ch #
# Updated: 2022/04/24 11:41:33 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
#
@@ -142,14 +142,16 @@ ft:
@echo "functions:"
@nm $(NAME) | grep T | grep -o 'ft_.*' | sort -u
sync: config online pull
update: sync
sync: online pull
@git status | grep -q 'nothing to commit' || (git diff; read -p "Comment: " comment; git add -A; git commit -am "$${comment-$$(date '+%F %T')}"; git push)
online:
@dig +short vogsphere.42lausanne.ch A | grep -qF '185.25.195.180' || echo 'vogsphere.42lausanne.ch unresolvable'
@nc -vzw3 vogsphere.42lausanne.ch 443 2>&1 | grep -qF '185.25.195.180' || echo 'vogsphere.42lausanne.ch unreachable'
pull:
pull: config
@git pull
config: