Implement a patch for jtoty/Libftest because nm -g libft.a on MacOS X return _ft_lstdelone (unlike Linux which returns ft_lstdelone with _ as prefix) so ./grademe.sh -u -ob does not work on MacOS X

This commit is contained in:
gbaconni
2021-10-28 21:49:45 +02:00
parent 1273f529e1
commit 37deef2589
2 changed files with 13 additions and 1 deletions

11
libft/Libftest.patch Normal file
View File

@@ -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"