From: Vincent Le Gallic Date: Mon, 30 Sep 2013 20:07:29 +0000 (+0200) Subject: [bde/liste_pot] Pour générer la liste d'invités et d'adhérents sans se fouler X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;ds=sidebyside;h=b4ee646ecc6a5cf94cdc9aee87e82c5ccc839eac;p=scripts-20-100.git [bde/liste_pot] Pour générer la liste d'invités et d'adhérents sans se fouler --- diff --git a/bde/liste_pot/creer_liste b/bde/liste_pot/creer_liste new file mode 100755 index 0000000..46a3af2 --- /dev/null +++ b/bde/liste_pot/creer_liste @@ -0,0 +1,16 @@ +#!/bin/bash + +cd ~/bde/liste_pot + +if [ ! $1 ] +then + echo "Précisez le nom du pot" + exit 1 +else + ssh vincent@bde.crans.org "/usr/scripts/liste_pot/creer_liste $1 --stdout" > texformated_liste_pot_"$1".tex + echo "liste créée et importée" + pdflatex texformated_liste_pot_"$1".tex > /dev/null + mv texformated_liste_pot_"$1".pdf liste_pot_"$1".pdf + echo "pdf généré : ~/liste_pot/liste_pot_$1.pdf" +fi + diff --git a/bde/liste_pot/liste_invites b/bde/liste_pot/liste_invites new file mode 100755 index 0000000..bcd24f0 --- /dev/null +++ b/bde/liste_pot/liste_invites @@ -0,0 +1,16 @@ +#!/bin/bash + +cd ~/bde/liste_pot + +if [ ! $1 ] +then + echo "Précisez le nom du pot" + exit 1 +else + ssh vincent@bde.crans.org "/usr/scripts/liste_pot/liste_invites $@ --stdout" > texformated_liste_invites_"$1".tex + echo "liste d'invités créée et importée" + pdflatex texformated_liste_invites_"$1".tex > /dev/null + mv texformated_liste_invites_"$1".pdf liste_invites_"$1".pdf + echo "pdf généré : ~/liste_pot/liste_invites_$1.pdf" +fi + diff --git a/bde/liste_pot/pot.sh b/bde/liste_pot/pot.sh new file mode 100755 index 0000000..b79e3ed --- /dev/null +++ b/bde/liste_pot/pot.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cd ~/bde/liste_pot + +if [ ! $1 ] +then + echo "Précisez le nom du pot" + exit 1 +else + ./creer_liste "$1" + ./liste_invites $@ +fi +