aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
commit39951f08a2938683d800c677c3a244e9ff8dbe19 (patch)
tree9321278f57c91d070e269fc2d2f95d4f2cb00fdf /script
parent306a69eb9ae88813cf0be0aa3e001481e12220a1 (diff)
downloadlibft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.gz
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.bz2
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.zip
Removing none c,h files for correction
Diffstat (limited to 'script')
-rwxr-xr-xscript/create_test.sh22
-rwxr-xr-xscript/find_src.sh20
-rwxr-xr-xscript/generate_rendu.sh26
-rw-r--r--script/generate_rendu_makefile.sh5
-rw-r--r--script/template.makefile38
-rw-r--r--script/test.sh14
-rw-r--r--script/test.template.c26
-rwxr-xr-xscript/test_prettier.sh6
8 files changed, 0 insertions, 157 deletions
diff --git a/script/create_test.sh b/script/create_test.sh
deleted file mode 100755
index a0c9773..0000000
--- a/script/create_test.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-[ $# -eq 0 ] && echo "Usage $0 src_file_path+" && exit 1
-
-for src_file_path in $@
-do
- src_file_dir=`dirname $src_file_path`
- src_file_name=`basename $src_file_path`
- src_file_name_no_ext=`echo $src_file_name | sed 's/\.c//'`
- template='script/test.template.c'
-
- test_file_path="test/$src_file_dir/test_$src_file_name"
-
- [ -f $test_file_path ] &&
- echo "Cannot create test $test_file_path already exists" &&
- continue
-
- mkdir -p "test/$src_file_dir"
- sed "s/<funcname>/$src_file_name_no_ext/" $template > $test_file_path
- echo "Created new test file at $test_file_path"
-done
-
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_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)
-{
-
-}
diff --git a/script/test.template.c b/script/test.template.c
deleted file mode 100644
index f6d71e8..0000000
--- a/script/test.template.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* test.template.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/04/01 19:41:59 by charles #+# #+# */
-/* Updated: 2020/04/04 20:23:33 by charles ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_test.h"
-
-TEST_GROUP(<funcname>);
-
-TEST_SETUP(<funcname>)
-{}
-
-TEST_TEAR_DOWN(<funcname>)
-{}
-
-TEST(<funcname>, basic)
-{
- TEST_FAIL_MESSAGE("<funcname> test not implemented");
-}
diff --git a/script/test_prettier.sh b/script/test_prettier.sh
deleted file mode 100755
index bd6b9a3..0000000
--- a/script/test_prettier.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-while read line
-do
- # echo `echo $line | sed
-done