From 233f6652e5ab14930d7cf184225be32b1e51d5e8 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 13 Feb 2012 11:57:37 +0100 Subject: [PATCH] =?UTF-8?q?[AJ]=20Am=C3=A9lioration=20affichage=20de=20la?= =?UTF-8?q?=20cr=C3=A9ation=20du=20contenu=20(cat=C3=A9gories=20+=20=C3=A9?= =?UTF-8?q?l=C3=A9ments)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GNUmakefile | 10 +++++++++- creation_categ.sh | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 50812d7..9533a96 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -103,7 +103,15 @@ css: $(dependances_css) # création du fichier $(contenu) contenu: $(script_contenu) @$(PROG_SED) -i "s/DEBUG=1/DEBUG=0/g" $(script_contenu) - @$(PROG_SH) $(script_contenu) $(categ) $(contenu) $(ext) $(composants) $(categ_deb) $(categ_fin) $(elem) || exit 1 + @$(PROG_ECHO) -e "Création du contenu avec les valeurs suivantes : " + @$(PROG_ECHO) -e "\t\t- Dossier catégorie : $(categ)" + @$(PROG_ECHO) -e "\t\t- Destination temporaire du contenu : $(contenu)" + @$(PROG_ECHO) -e "\t\t- Extension des fichiers à lire : $(ext)" + @$(PROG_ECHO) -e "\t\t- Dossier ayant les composants de la page : $(composants)" + @$(PROG_ECHO) -e "\t\t- Entête HTML d'une catégorie : $(categ_deb)" + @$(PROG_ECHO) -e "\t\t- Enqueue HTML d'une catégorie : $(categ_fin)" + @$(PROG_ECHO) -e "\t\t- Code HTML d'un élément : $(elem)" + @$(PROG_SH) $(script_contenu) $(categ) $(contenu) $(ext) $(composants) $(categ_deb) $(categ_fin) $(elem) # création de la page d'index index.html: $(DOSSIER_HTML) css contenu $(dependances_index) $(contenu) diff --git a/creation_categ.sh b/creation_categ.sh index 4a2c60c..e77ff05 100755 --- a/creation_categ.sh +++ b/creation_categ.sh @@ -58,7 +58,9 @@ utilisation( ) # Test sur les paramètres if [ $# -ne 7 ] then + echo $# utilisation + exit 1 else # $PROGRAMME dossier_cat destination.html extension composants entete_cat.html enqueue_cat.html element.html dossier=$1