smallfixes

This commit is contained in:
djonker 2023-03-09 04:07:50 +01:00
parent ffee823f3e
commit c375f04305
2 changed files with 4 additions and 5 deletions

View File

@ -6,14 +6,13 @@
/* By: djonker <marvin@codam.nl> +#+ */ /* By: djonker <marvin@codam.nl> +#+ */
/* +#+ */ /* +#+ */
/* Created: 2020/12/19 06:09:11 by djonker #+# #+# */ /* Created: 2020/12/19 06:09:11 by djonker #+# #+# */
/* Updated: 2021/05/27 03:41:54 by djonker \___)=(___/ */ /* Updated: 2023/03/09 03:26:07 by houtworm \___)=(___/ */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#ifndef GET_NEXT_LINE_H #ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H # define GET_NEXT_LINE_H
# include "get_next_line.h"
# include <unistd.h> # include <unistd.h>
# include <stdlib.h> # include <stdlib.h>
# include <fcntl.h> # include <fcntl.h>

View File

@ -6,7 +6,7 @@
# By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / # # By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / #
# (| | )|_| |_| |> < # # (| | )|_| |_| |> < #
# Created: 2023/02/20 12:46:46 by houtworm /'\_ _/`\__|\__,_/_/\_\ # # Created: 2023/02/20 12:46:46 by houtworm /'\_ _/`\__|\__,_/_/\_\ #
# Updated: 2023/03/06 09:04:17 by houtworm \___)=(___/ # # Updated: 2023/03/07 19:06:23 by houtworm \___)=(___/ #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -25,7 +25,7 @@ then
else else
printf "\n\e[1;31mInstall Valgrind for extra Memory Checking\e[0;00m\n" printf "\n\e[1;31mInstall Valgrind for extra Memory Checking\e[0;00m\n"
fi fi
HEADLOC=$(find ./ -name '*line.h' | grep -v tests) HEADLOC=$(find ./ -name '*line.h' | grep -v tests | grep -v ccls)
mkdir -p tests/tmp mkdir -p tests/tmp
cp $HEADLOC tests/tmp/get_next_line.h cp $HEADLOC tests/tmp/get_next_line.h
if [ $1 == "old" ] if [ $1 == "old" ]
@ -163,7 +163,7 @@ relinkcheck()
# Test 1 # Test 1
printf "\e[1;36mTest 1 Checking all source with Norminette\e[0;00m\n" printf "\e[1;36mTest 1 Checking all source with Norminette\e[0;00m\n"
norminette $(find ./ -name '*.[ch]' | grep -v ./tests/) > tests/tmp/norm norminette $(find ./ -name '*.[ch]' | grep -v ./tests/ | grep -v ccls) > tests/tmp/norm
if [ $? -eq 1 ] if [ $? -eq 1 ]
then then
printf "\e[1;31mYour shit is not norm!\e[0;00m\n" printf "\e[1;31mYour shit is not norm!\e[0;00m\n"