From 747bdf4abad4e3b6fbe7293b59103a98d75652fc Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Fri, 30 Jun 2023 23:38:11 +0200 Subject: [PATCH 1/2] ls ignore dotfiles --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index f3d39e5..bf39a71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -69,6 +69,8 @@ void listScripts(int argc, char *argv[]) std::cout << "Scripts:" << std::endl; for (const auto &entry : std::filesystem::directory_iterator(dir)) { + if (entry.path().filename().string().substr(0, 1) == ".") + continue; std::string name = entry.path().filename().string(); std::cout << " " << name << std::endl; } From 5043786513c664235de3b9c4a0d3092322641d3e Mon Sep 17 00:00:00 2001 From: Lucas Palomo Develop Date: Mon, 17 Jul 2023 20:35:25 +0200 Subject: [PATCH 2/2] added static libs to makefile --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 8e949f8..2167e33 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ CC = g++ -CFLAGS = -std=c++17 -Wall +CFLAGS = -std=c++17 -Wall -static -static-libgcc -static-libstdc++ SRCDIR = ./src BINDIR = ./bin @@ -8,4 +8,4 @@ $(BINDIR)/autom: $(SRCDIR)/main.cpp $(SRCDIR)/command.cpp $(SRCDIR)/inputparser. .PHONY: clean clean: - rm -f $(BINDIR)/autom \ No newline at end of file + rm -f $(BINDIR)/autom