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:24:37 by gbaconni ### lausanne.ch #
# Updated: 2022/04/24 11:41:45 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
#
@@ -126,16 +126,16 @@ doc:
@curl -s -L -z fr.subject.pdf -o fr.subject.pdf $(PDF_FR)
@curl -s -L -z en.subject.pdf -o en.subject.pdf $(PDF_EN)
update: config online pull
update: sync
sync: config online pull
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.baco.net A | grep -qF '213.5.156.25' || echo 'vogsphere.baco.net unresolvable'
@nc -vzw3 vogsphere.baco.net 443 2>&1 | grep -qF '213.5.156.25' || echo 'vogsphere.baco.net unreachable'
pull:
pull: config
@git pull
config: