diff --git a/Makefile b/Makefile index 1e1f1ce..201c0fd 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/01/18 15:11:16 by gbaconni #+# #+# # -# Updated: 2022/04/26 12:11:46 by gbaconni ### ########.fr # +# Updated: 2022/04/26 12:43:41 by gbaconni ### ########.fr # # # # **************************************************************************** # # @@ -135,6 +135,7 @@ doc: update: sync sync: online pull + @git ls-files --others --exclude-standard | xargs diff -Naur '' | less -F @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: diff --git a/libftprintf/Makefile b/libftprintf/Makefile index c39a0e7..a7d7ca9 100644 --- a/libftprintf/Makefile +++ b/libftprintf/Makefile @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/01/18 15:11:16 by gbaconni #+# #+# # -# Updated: 2022/04/26 10:42:02 by gbaconni ### ########.fr # +# Updated: 2022/04/26 12:41:34 by gbaconni ### ########.fr # # # # **************************************************************************** # # @@ -147,11 +147,12 @@ ft: update: sync sync: online pull + @git ls-files --others --exclude-standard | xargs diff -Naur '' | less -F @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' + @dig +short vogsphere.42lausanne.ch A | grep -qE '(185\.25\.195\.180|10\.51\.1\.5)' || echo 'vogsphere.42lausanne.ch unresolvable' + @nc -vzw3 vogsphere.42lausanne.ch 443 2>&1 | grep -qE '(185\.25\.195\.180|10\.51\.1\.5)' || echo 'vogsphere.42lausanne.ch unreachable' pull: config @git pull