diff options
Diffstat (limited to 'script')
| -rwxr-xr-x | script/find_src.sh | 20 | ||||
| -rwxr-xr-x | script/generate_boilerplate_test.sh | 9 | ||||
| -rwxr-xr-x | script/generate_rendu.sh | 26 | ||||
| -rw-r--r-- | script/generate_rendu_makefile.sh | 5 | ||||
| -rw-r--r-- | script/template.makefile | 38 | ||||
| -rw-r--r-- | script/test.sh | 14 |
6 files changed, 0 insertions, 112 deletions
diff --git a/script/find_src.sh b/script/find_src.sh deleted file mode 100755 index 511642b..0000000 --- a/script/find_src.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!bin/sh - -if [ $# -ne 1 ]; then - echo "Usage $0 ignore_file" - exit 1 -fi - -IGNORE_FILE=$1 - -if [ ! -e $IGNORE_FILE ]; then - echo "Ignore file doesnt exist" - exit 1 -fi - -SRC_DIR=src - -IGNORE_FIND_ARGS=`sed 's/.*/-not -path "&"/' $IGNORE_FILE | paste -sd " " -` - -sh -c "find $SRC_DIR $IGNORE_FIND_ARGS -name \"*.c\"" -# find $SRC_DIR $IGNORE_FIND_ARGS -name "*.c" diff --git a/script/generate_boilerplate_test.sh b/script/generate_boilerplate_test.sh deleted file mode 100755 index ef6a2cf..0000000 --- a/script/generate_boilerplate_test.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -for f in $@ -do - test_name="test_`basename $f | sed 's/\..*//'`" - - - echo $test_name -done diff --git a/script/generate_rendu.sh b/script/generate_rendu.sh deleted file mode 100755 index 1b68a97..0000000 --- a/script/generate_rendu.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -if [ "$(git status --porcelain)" ] -then - echo "Error: Your working directory isn't clean" - exit -fi - -BASE_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) -RENDU_BRANCH_NAME="rendu-$BASE_BRANCH_NAME" - -if [ -z $(git show-ref --verify --quiet refs/heads/$RENDU_BRANCH_NAME) ] -then - echo "Error: $RENDU_BRANCH_NAME was already generated" - exit -fi - -git checkout -b $RENDU_BRANCH_NAME -RENDU_IGNORE=$(sed -n 's/RENDU_IGNORE=//p') -make fclean -rm -f $RENDU_IGNORE - -# generate makefile strict src - -git add . -git commit --message "Generated commit: creation of rendu for $BASE_BRANCH_NAME" diff --git a/script/generate_rendu_makefile.sh b/script/generate_rendu_makefile.sh deleted file mode 100644 index 00a9e81..0000000 --- a/script/generate_rendu_makefile.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!bin/sh - -SRC=`sh script/find_src.sh .libftignore` - -sed 's:\#INSERTSRC:'$SRC':g' template.makefile > rendu.makefile diff --git a/script/template.makefile b/script/template.makefile deleted file mode 100644 index b0902ec..0000000 --- a/script/template.makefile +++ /dev/null @@ -1,38 +0,0 @@ -# **************************************************************************** # -# # -# ::: :::::::: # -# Makefile :+: :+: :+: # -# +:+ +:+ +:+ # -# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # -# Created: 2019/10/08 15:45:53 by cacharle #+# #+# # -# Updated: 2020/01/31 06:51:18 by cacharle ### ########.fr # -# # -# **************************************************************************** # - -RM = rm -f -LIB = ar rcs - -CC = gcc -CCFLAGS = -Iinclude -Wall -Wextra -Werror - -#INSERTSRC - -OBJ = $(SRC:.c=.o) -NAME = libft.a - -all: $(NAME) - -$(NAME): $(OBJ) - $(LIB) $@ $(OBJ) - -%.o: %.c - $(CC) $(CCFLAGS) -c -o $@ $< - -clean: - $(RM) -r $(OBJ_DIR) - -fclean: clean - $(RM) $(NAME) - -re: fclean all diff --git a/script/test.sh b/script/test.sh deleted file mode 100644 index 50a17c9..0000000 --- a/script/test.sh +++ /dev/null @@ -1,14 +0,0 @@ -#include "libft_test.h" - -TEST_GROUP(test.sh); - -TEST_SETUP(test.sh); -{} - -TEST_TEAR_DOWN(test.sh); -{} - -TEST(test.sh, basic) -{ - -} |
