Use a variable for git repository

This commit is contained in:
gbaconni
2022-04-17 11:31:29 +02:00
parent 4b5895e873
commit 53464f0798

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# # # Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/17 11:19:20 by gbaconni ### lausanne.ch # # Updated: 2022/04/17 11:31:01 by gbaconni ### lausanne.ch #
# # # #
# **************************************************************************** # # **************************************************************************** #
# #
@@ -18,6 +18,8 @@
# make # make
# #
GIT_REPO = git@vogsphere.42lausanne.ch:vogsphere/intra-uuid-fd8d00fc-8c22-400e-a8d9-dcc364688380-4092952-gbaconni
NAME = ft_printf NAME = ft_printf
LIBFTPRINTF = libftprintf LIBFTPRINTF = libftprintf
@@ -124,8 +126,9 @@ config:
@git config branch.autosetuprebase always @git config branch.autosetuprebase always
42: 42:
@git clone git@vogsphere.42lausanne.ch:vogsphere/intra-uuid-fd8d00fc-8c22-400e-a8d9-dcc364688380-4092952-gbaconni 42 || true @git clone $(GIT_REPO) 42 || true
21: 42 21: 42
@find libftprintf -maxdepth 2 -type f -name '*.c' -o -name '*.h' -o -name 'Makefile' | sed -r "s|(libftprintf/)|\1./|" | xargs -I {} rsync -SaR {} 42/ @find libftprintf -maxdepth 2 -type f -name '*.c' -o -name '*.h' -o -name 'Makefile' | sed -r "s|(libftprintf/)|\1./|" | xargs -I {} rsync -SaR {} 42/
@make -C 42 sync