From 205a564482225346ddc36d0a86ab425b8b1aed5f Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Wed, 1 May 2024 14:15:01 -0300 Subject: [PATCH] move to new skeleton --- examples/http-restful-server/mongoose.c | 1 - examples/http-restful-server/mongoose.h | 1 - examples/http-server/mongoose.c | 1 - examples/http-server/mongoose.h | 1 - test/Makefile | 2 +- {examples => tutorials/http}/http-restful-server/Makefile | 0 {examples => tutorials/http}/http-restful-server/README.md | 0 {examples => tutorials/http}/http-restful-server/main.c | 0 tutorials/http/http-restful-server/mongoose.c | 1 + tutorials/http/http-restful-server/mongoose.h | 1 + {examples => tutorials/http}/http-restful-server/server.pem | 0 {examples => tutorials/http}/http-server/Makefile | 0 {examples => tutorials/http}/http-server/README.md | 0 {examples => tutorials/http}/http-server/main.c | 0 tutorials/http/http-server/mongoose.c | 1 + tutorials/http/http-server/mongoose.h | 1 + 16 files changed, 5 insertions(+), 5 deletions(-) delete mode 120000 examples/http-restful-server/mongoose.c delete mode 120000 examples/http-restful-server/mongoose.h delete mode 120000 examples/http-server/mongoose.c delete mode 120000 examples/http-server/mongoose.h rename {examples => tutorials/http}/http-restful-server/Makefile (100%) rename {examples => tutorials/http}/http-restful-server/README.md (100%) rename {examples => tutorials/http}/http-restful-server/main.c (100%) create mode 120000 tutorials/http/http-restful-server/mongoose.c create mode 120000 tutorials/http/http-restful-server/mongoose.h rename {examples => tutorials/http}/http-restful-server/server.pem (100%) rename {examples => tutorials/http}/http-server/Makefile (100%) rename {examples => tutorials/http}/http-server/README.md (100%) rename {examples => tutorials/http}/http-server/main.c (100%) create mode 120000 tutorials/http/http-server/mongoose.c create mode 120000 tutorials/http/http-server/mongoose.h diff --git a/examples/http-restful-server/mongoose.c b/examples/http-restful-server/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/http-restful-server/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/http-restful-server/mongoose.h b/examples/http-restful-server/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/http-restful-server/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/examples/http-server/mongoose.c b/examples/http-server/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/http-server/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/http-server/mongoose.h b/examples/http-server/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/http-server/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/test/Makefile b/test/Makefile index cd9447ec..46722004 100644 --- a/test/Makefile +++ b/test/Makefile @@ -58,7 +58,7 @@ CFLAGS += -DMG_TLS=MG_TLS_BUILTIN endif all: - $(MAKE) -C ../examples/http-server + $(MAKE) -C ../tutorials/http/http-server tall: mg_prefix unamalgamated test mip_test arm examples vc98 vc17 vc22 mingw mingw++ fuzz diff --git a/examples/http-restful-server/Makefile b/tutorials/http/http-restful-server/Makefile similarity index 100% rename from examples/http-restful-server/Makefile rename to tutorials/http/http-restful-server/Makefile diff --git a/examples/http-restful-server/README.md b/tutorials/http/http-restful-server/README.md similarity index 100% rename from examples/http-restful-server/README.md rename to tutorials/http/http-restful-server/README.md diff --git a/examples/http-restful-server/main.c b/tutorials/http/http-restful-server/main.c similarity index 100% rename from examples/http-restful-server/main.c rename to tutorials/http/http-restful-server/main.c diff --git a/tutorials/http/http-restful-server/mongoose.c b/tutorials/http/http-restful-server/mongoose.c new file mode 120000 index 00000000..5e522bbc --- /dev/null +++ b/tutorials/http/http-restful-server/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/http/http-restful-server/mongoose.h b/tutorials/http/http-restful-server/mongoose.h new file mode 120000 index 00000000..ee4ac823 --- /dev/null +++ b/tutorials/http/http-restful-server/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file diff --git a/examples/http-restful-server/server.pem b/tutorials/http/http-restful-server/server.pem similarity index 100% rename from examples/http-restful-server/server.pem rename to tutorials/http/http-restful-server/server.pem diff --git a/examples/http-server/Makefile b/tutorials/http/http-server/Makefile similarity index 100% rename from examples/http-server/Makefile rename to tutorials/http/http-server/Makefile diff --git a/examples/http-server/README.md b/tutorials/http/http-server/README.md similarity index 100% rename from examples/http-server/README.md rename to tutorials/http/http-server/README.md diff --git a/examples/http-server/main.c b/tutorials/http/http-server/main.c similarity index 100% rename from examples/http-server/main.c rename to tutorials/http/http-server/main.c diff --git a/tutorials/http/http-server/mongoose.c b/tutorials/http/http-server/mongoose.c new file mode 120000 index 00000000..5e522bbc --- /dev/null +++ b/tutorials/http/http-server/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/http/http-server/mongoose.h b/tutorials/http/http-server/mongoose.h new file mode 120000 index 00000000..ee4ac823 --- /dev/null +++ b/tutorials/http/http-server/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file