diff --git a/libft/Libftest.patch b/libft/Libftest.patch new file mode 100644 index 0000000..c85805f --- /dev/null +++ b/libft/Libftest.patch @@ -0,0 +1,11 @@ +--- a/srcs/check_file.sh ++++ b/srcs/check_file.sh +@@ -148,7 +148,7 @@ check_turned_in_functions() + printf "\n${text}" >> ${PATH_DEEPTHOUGHT}/deepthought + printf "%.s=" $(seq 1 $(( 80 - ${#text} ))) >> ${PATH_DEEPTHOUGHT}/deepthought + printf "\n" >> ${PATH_DEEPTHOUGHT}/deepthought +- if [[ -n $(echo ${LIB_CONTENT} | grep -w $(echo ${1})) ]] ++ if [[ -n $(echo ${LIB_CONTENT} | grep -w $(echo ${1})) ]] || [[ -n $(echo ${LIB_CONTENT} | grep -w _$(echo ${1})) ]] + then + retvalue=1 + return "$retvalue" diff --git a/libft/Makefile b/libft/Makefile index 4d8032c..1f5d99a 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -6,7 +6,7 @@ # By: gbaconni +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/10/22 09:10:00 by gbaconni #+# #+# # -# Updated: 2021/10/27 10:07:41 by gbaconni ### ########.fr # +# Updated: 2021/10/28 21:45:43 by gbaconni ### lausanne.ch # # # # **************************************************************************** # # @@ -89,6 +89,7 @@ b: compile _libftTester @make -C libftTester m || true _Libftest: + @patch -d Libftest -p1 --dry-run < Libftest.patch >/dev/null 2>&1 && patch -d Libftest -p1 < Libftest.patch || true @test -f Libftest/my_config.sh || (cd Libftest && ./grademe.sh -u >/dev/null 2>&1) || true @grep -q '^PATH_LIBFT=\.\./libft' Libftest/my_config.sh || sed -i'.orig' -e 's/^\(PATH_LIBFT\)=.*/\1=..\/libft/' Libftest/my_config.sh || true @grep -q "'ft_memccpy'" Libftest/srcs/variables/functions/part_1.sh && sed -i'.orig' -e "/'ft_memccpy'/d" Libftest/srcs/variables/functions/part_1.sh || true