From 4eb3a1c9782637c1071aac7a64a47714e48f53e0 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 25 Apr 2024 16:54:28 -0300 Subject: [PATCH] move to new skeleton --- examples/embedded-filesystem/README.md | 1 - examples/embedded-filesystem/mongoose.c | 1 - examples/embedded-filesystem/mongoose.h | 1 - {examples => tutorials/core}/embedded-filesystem/Makefile | 2 +- tutorials/core/embedded-filesystem/README.md | 1 + {examples => tutorials/core}/embedded-filesystem/main.c | 0 tutorials/core/embedded-filesystem/mongoose.c | 1 + tutorials/core/embedded-filesystem/mongoose.h | 1 + {examples => tutorials/core}/embedded-filesystem/packed_fs.c | 0 .../core}/embedded-filesystem/web_root/index.html | 0 .../core}/embedded-filesystem/web_root/main.js | 0 .../core}/embedded-filesystem/web_root/preact.min.js | 0 .../core}/embedded-filesystem/web_root/style.css | 0 13 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 examples/embedded-filesystem/README.md delete mode 120000 examples/embedded-filesystem/mongoose.c delete mode 120000 examples/embedded-filesystem/mongoose.h rename {examples => tutorials/core}/embedded-filesystem/Makefile (97%) create mode 100644 tutorials/core/embedded-filesystem/README.md rename {examples => tutorials/core}/embedded-filesystem/main.c (100%) create mode 120000 tutorials/core/embedded-filesystem/mongoose.c create mode 120000 tutorials/core/embedded-filesystem/mongoose.h rename {examples => tutorials/core}/embedded-filesystem/packed_fs.c (100%) rename {examples => tutorials/core}/embedded-filesystem/web_root/index.html (100%) rename {examples => tutorials/core}/embedded-filesystem/web_root/main.js (100%) rename {examples => tutorials/core}/embedded-filesystem/web_root/preact.min.js (100%) rename {examples => tutorials/core}/embedded-filesystem/web_root/style.css (100%) diff --git a/examples/embedded-filesystem/README.md b/examples/embedded-filesystem/README.md deleted file mode 100644 index c5425b24f4..0000000000 --- a/examples/embedded-filesystem/README.md +++ /dev/null @@ -1 +0,0 @@ -See detailed tutorial at https://mongoose.ws/tutorials/embedded-filesystem/ diff --git a/examples/embedded-filesystem/mongoose.c b/examples/embedded-filesystem/mongoose.c deleted file mode 120000 index 8ef6e62d4e..0000000000 --- a/examples/embedded-filesystem/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/embedded-filesystem/mongoose.h b/examples/embedded-filesystem/mongoose.h deleted file mode 120000 index 488ef35873..0000000000 --- a/examples/embedded-filesystem/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/examples/embedded-filesystem/Makefile b/tutorials/core/embedded-filesystem/Makefile similarity index 97% rename from examples/embedded-filesystem/Makefile rename to tutorials/core/embedded-filesystem/Makefile index 1137832083..e62f43fb0f 100644 --- a/examples/embedded-filesystem/Makefile +++ b/tutorials/core/embedded-filesystem/Makefile @@ -23,7 +23,7 @@ all: $(PROG) # Default target. Build and run program $(RUN) ./$(PROG) $(ARGS) $(PROG): $(SOURCES) $(FILES_TO_EMBED) # Build program from sources - $(CC) ../../test/pack.c -o $(PACK) + $(CC) ../../../test/pack.c -o $(PACK) $(PACK) $(FILES_TO_EMBED) > packed_fs.c $(CC) $(SOURCES) $(CFLAGS) $(CFLAGS_MONGOOSE) $(CFLAGS_EXTRA) $(OUT) diff --git a/tutorials/core/embedded-filesystem/README.md b/tutorials/core/embedded-filesystem/README.md new file mode 100644 index 0000000000..08377614b8 --- /dev/null +++ b/tutorials/core/embedded-filesystem/README.md @@ -0,0 +1 @@ +See detailed tutorial at https://mongoose.ws/tutorials/core/embedded-filesystem/ diff --git a/examples/embedded-filesystem/main.c b/tutorials/core/embedded-filesystem/main.c similarity index 100% rename from examples/embedded-filesystem/main.c rename to tutorials/core/embedded-filesystem/main.c diff --git a/tutorials/core/embedded-filesystem/mongoose.c b/tutorials/core/embedded-filesystem/mongoose.c new file mode 120000 index 0000000000..5e522bbcd4 --- /dev/null +++ b/tutorials/core/embedded-filesystem/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/core/embedded-filesystem/mongoose.h b/tutorials/core/embedded-filesystem/mongoose.h new file mode 120000 index 0000000000..ee4ac82323 --- /dev/null +++ b/tutorials/core/embedded-filesystem/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file diff --git a/examples/embedded-filesystem/packed_fs.c b/tutorials/core/embedded-filesystem/packed_fs.c similarity index 100% rename from examples/embedded-filesystem/packed_fs.c rename to tutorials/core/embedded-filesystem/packed_fs.c diff --git a/examples/embedded-filesystem/web_root/index.html b/tutorials/core/embedded-filesystem/web_root/index.html similarity index 100% rename from examples/embedded-filesystem/web_root/index.html rename to tutorials/core/embedded-filesystem/web_root/index.html diff --git a/examples/embedded-filesystem/web_root/main.js b/tutorials/core/embedded-filesystem/web_root/main.js similarity index 100% rename from examples/embedded-filesystem/web_root/main.js rename to tutorials/core/embedded-filesystem/web_root/main.js diff --git a/examples/embedded-filesystem/web_root/preact.min.js b/tutorials/core/embedded-filesystem/web_root/preact.min.js similarity index 100% rename from examples/embedded-filesystem/web_root/preact.min.js rename to tutorials/core/embedded-filesystem/web_root/preact.min.js diff --git a/examples/embedded-filesystem/web_root/style.css b/tutorials/core/embedded-filesystem/web_root/style.css similarity index 100% rename from examples/embedded-filesystem/web_root/style.css rename to tutorials/core/embedded-filesystem/web_root/style.css