From 8613557ec420d0ad06dba146c801936962d99900 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 27 Feb 2017 14:13:06 +0100 Subject: [PATCH] Reorganize the repository structure to deal with more than one TP. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- README | 23 +++++++++-------------- {exo1 => TP_7.5/exo1}/Makefile | 0 {exo1 => TP_7.5/exo1}/exo1.c | 0 {exo2 => TP_7.5/exo2}/Makefile | 0 {exo2 => TP_7.5/exo2}/exo2.c | 0 {exo3 => TP_7.5/exo3}/Makefile | 0 {exo3 => TP_7.5/exo3}/exo3.c | 0 7 files changed, 9 insertions(+), 14 deletions(-) rename {exo1 => TP_7.5/exo1}/Makefile (100%) rename {exo1 => TP_7.5/exo1}/exo1.c (100%) rename {exo2 => TP_7.5/exo2}/Makefile (100%) rename {exo2 => TP_7.5/exo2}/exo2.c (100%) rename {exo3 => TP_7.5/exo3}/Makefile (100%) rename {exo3 => TP_7.5/exo3}/exo3.c (100%) diff --git a/README b/README index 6b30262..76ed21a 100644 --- a/README +++ b/README @@ -4,30 +4,25 @@ Introduction: The whole purpose of the current C code is to solve the Polytech'Marseille C tutorial exercices. -The repository organisation is pretty straightforward: --> exo? where ? is a digit is the repository where lies the -solution to exercice one, and so on. +The repositories organisation is pretty straightforward: +TP_#/exo?, where # is a digit representing the TP number and +? is a digit representing the exercice number, is the repository +where lies the solution to exercice ? TP #. Building the solutions: ----------------------- - cd exo1 && make - cd exo2 && make - cd exo3 && make + cd TP_#/exo? && make Cleaning the solutions: ----------------------- - cd exo1 && make clean - cd exo2 && make clean - cd exo3 && make clean + cd TP_#/exo? && make clean Running the solutions: ---------------------- - cd exo1 && ./exo1 - cd exo2 && ./exo2 - cd exo3 && ./exo3 + cd TP_#/exo? && ./exo? Exercice skeleton: ------------------ @@ -35,7 +30,7 @@ Exercice skeleton: It's the directory exo_skel with a basic Makefile inside To use it: - $ cp -a exo_skel exo# (where # is a digit) - $ cd exo# && cp exo_skel.c exo#.c + $ cp -a exo_skel TP_#/exo? (where # and ? are digits) + $ cd TP_#/exo? && cp exo_skel.c exo?.c Edit the Makefile to change the TARGET variable to the exercice name desired diff --git a/exo1/Makefile b/TP_7.5/exo1/Makefile similarity index 100% rename from exo1/Makefile rename to TP_7.5/exo1/Makefile diff --git a/exo1/exo1.c b/TP_7.5/exo1/exo1.c similarity index 100% rename from exo1/exo1.c rename to TP_7.5/exo1/exo1.c diff --git a/exo2/Makefile b/TP_7.5/exo2/Makefile similarity index 100% rename from exo2/Makefile rename to TP_7.5/exo2/Makefile diff --git a/exo2/exo2.c b/TP_7.5/exo2/exo2.c similarity index 100% rename from exo2/exo2.c rename to TP_7.5/exo2/exo2.c diff --git a/exo3/Makefile b/TP_7.5/exo3/Makefile similarity index 100% rename from exo3/Makefile rename to TP_7.5/exo3/Makefile diff --git a/exo3/exo3.c b/TP_7.5/exo3/exo3.c similarity index 100% rename from exo3/exo3.c rename to TP_7.5/exo3/exo3.c -- 2.34.1