bash_utils is a set of useful bash scripts (made for 42 computers, some features will therefore not be useful / usable elsewhere)
git clone https://github.com/dbiguene/bash_utils.git bash ./bash_utils/installer.sh
-
Runs norminette with a prettier output
Example:
Idea is from gd-harco, code is from me./better_norminette.sh -s *.c
-
Easier way to manage your repo, add files, commit...
Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...
-s | --silent
: Hide all git console messages-af="files" | --addfiles="files"
: Files to add on the repo-c="message" | --commit="message"
: Commit message-r="remote_name" | --remote="remote_name"
: Set the remote name-url="repo_url" | --repo_url="repo_url"
: Set the repo url-b="branch_name" | --branch="branch_name"
: Set the branch name
Example:
./easy_git.sh -s -af="." -c="Commit message" -url="https://github.com/dbiguene/bash_utils.git" -r="origin" -b="main"
Will init a repo, checkout to branch "main", add "origin" remote on "https://github.com/dbiguene/bash_utils", add all files, and commit "Commit message" -
Easier way to load your dependencies on your makefile
Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...
-srcs="src_dir" | --sources="src_dir"
: Set srcs dir-h="headers_dir" | --headers="headers_dir"
: Set headers dir
Example:
./make_autoload -srcs="src/" -h="include/"
Will list and format all .c files into src/ dir, and all .h files into include/ dir -
Easier way to start your projects, with a prebuilt makefile and a clean structure, can handle libs too
Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...
-l="libft_url" | --libft="libft_url"
: Creates a project using your libft-mlx | --minilibx
: Creates a project using mlx-p="project_path" | --path="project_path"
: Creates the project to the given path-n="project_name" | --name="project_name"
: Set the project name
Example:
./templater -n="so_long" -p="." -mlx
Will create a project named "so_long" to "./" using mlx
If you find a bug or encounter an issue using this funciton, feel free to open a issue, or a pull request if you know how to fix it