From: Jérôme Benoit Date: Mon, 27 Feb 2017 13:13:06 +0000 (+0100) Subject: Reorganize the repository structure to deal with more than one TP. X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=commitdiff_plain;h=8613557ec420d0ad06dba146c801936962d99900 Reorganize the repository structure to deal with more than one TP. Signed-off-by: Jérôme Benoit --- 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