Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .tmp
Empty file.
39 changes: 0 additions & 39 deletions .vscode/launch.json

This file was deleted.

11 changes: 6 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"files.associations": {
"__functional_03": "c",
"array": "c",
"functional": "c",
"libft.h": "c",
"__node_handle": "c",
"algorithm": "c",
"locale": "c"
"istream": "c",
"ostream": "c",
"tuple": "c",
"type_traits": "c",
"utility": "c"
}
}
25 changes: 2 additions & 23 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"label": "C/C++: gcc compilar archivo activo",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
Expand All @@ -21,28 +21,7 @@
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
},
{
"type": "cppbuild",
"label": "C/C++: clang build active file",
"command": "/usr/bin/clang",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Task generated by Debugger."
"detail": "Tarea generada por el depurador."
}
],
"version": "2.0.0"
Expand Down
33 changes: 31 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME = minishell
NAMEBONUS = minishell_bonus
LIBNAME = libft.a
SRC = ./src/splitstr/split.c \
./src/splitstr/split_utils.c \
Expand All @@ -21,8 +22,31 @@ SRC = ./src/splitstr/split.c \
./src/builtins/bt_unset.c \
./src/builtins/btmanager.c \
./src/builtins/bt_exit.c
SRCBONUS = ./src/splitstr/split_bonus.c \
./src/splitstr/split_utils.c \
./src/splitstr/clean_quotes.c \
./src/splitstr/check_var.c \
./src/splitstr/correc_special.c \
./src/parser/parser_bonus.c \
./src/parser/executor_bonus.c \
./src/parser/heredoc_bonus.c \
./src/parser/getpaths_bonus.c \
./src/parser/parser_util_bonus.c \
./src/parser/parser_util2_bonus.c \
./src/parser/wildcard_bonus.c \
./src/terminal/terminal_bonus.c \
./src/main.c \
./src/error/error.c \
./src/envutils/envcp.c \
./src/builtins/bt_cd.c \
./src/builtins/bt_env_pwd_echo.c \
./src/builtins/bt_export.c \
./src/builtins/bt_unset.c \
./src/builtins/btmanager.c \
./src/builtins/bt_exit.c

OBJ = $(SRC:.c=.o)
OBJBONUS = $(SRCBONUS:.c=.o)

FLAGS = -Wall -Wextra -Werror -g3 -fsanitize=address
READFLAG = -lreadline -L/Users/$(USER)/.brew/opt/readline/lib
Expand All @@ -39,6 +63,11 @@ $(NAME): $(OBJ) $(LIBNAME)
@gcc $(FLAGS) $(OBJ) $(LIBNAME) $(READFLAG) -o $(NAME)
@echo $(GREEN)"- Compiled -"$(NONE)

bonus: $(OBJBONUS) $(LIBNAME)
@echo $(CURSIVE)$(GRAY) " - Compiling $(NAMEBONUS)..." $(NONE)
@gcc $(FLAGS) $(OBJBONUS) $(LIBNAME) $(READFLAG) -o $(NAMEBONUS)
@echo $(GREEN)"- Compiled -"$(NONE)

$(LIBNAME):
@echo $(CURSIVE)$(GRAY) " - Compiling LIBFT $(LIBNAME)..." $(NONE)
@$(MAKE) -C ./libft all
Expand All @@ -51,11 +80,11 @@ $(LIBNAME):
clean:
@echo $(CURSIVE)$(GRAY) " - Removing object files..." $(NONE)
@$(MAKE) -C ./libft clean
@rm -rf $(OBJ)
@rm -rf $(OBJ) $(OBJBONUS)

fclean: clean
@echo $(CURSIVE)$(GRAY) " - Removing $(NAME) And $(LIBNAME)..." $(NONE)
@$(MAKE) -C ./libft fclean
@rm -rf $(NAME) $(LIBNAME)
@rm -rf $(NAME) $(NAMEBONUS) $(LIBNAME)

re: fclean all
Binary file removed docs/Bash Reference Manual.pdf
Binary file not shown.
Binary file removed docs/Chapter5-WritingYourOwnShell.pdf
Binary file not shown.
212 changes: 0 additions & 212 deletions docs/README.md

This file was deleted.

Binary file removed docs/en.subject.pdf
Binary file not shown.
Binary file removed docs/lvl3_Correcction_minishell.pdf
Binary file not shown.
Loading