]> gitweb.pimeys.fr Git - scripts-20-100.git/blobdiff - bde/liste_pot/creer_liste
[bde/liste_pot] Pour générer la liste d'invités et d'adhérents sans se fouler
[scripts-20-100.git] / bde / liste_pot / creer_liste
diff --git a/bde/liste_pot/creer_liste b/bde/liste_pot/creer_liste
new file mode 100755 (executable)
index 0000000..46a3af2
--- /dev/null
@@ -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
+