Mise à jour des documents types

This commit is contained in:
Adrien Bourmault 2023-06-10 12:34:03 +02:00
parent 5e2b720665
commit a3ae7b2d04
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
7 changed files with 0 additions and 47 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

View File

@ -1,47 +0,0 @@
#!/bin/bash
# $1 : NOM-DONATEUR
# $2 : STATUT-DONATEUR
# $3 : ADRESSE-DONATEUR
# $4 : SOMME
# $5 : DATE-VERSEMENT
# $6 : FORME-DON
# $7 : NATURE-DON
# $8 : MODE-VERSEMENT
set -e
#exec {BASH_XTRACEFD}> >(tail -n 1) # send set -x output to tail -n 1
#PS4=':At line $LINENO; prior command exit status $?+'
#set -x
if [ $# -ne 8 ]; then
echo "Nombre d'arguments incorrect"
exit 1
fi
FILE="$1"_reçu_$(echo $5 | tr "/" ".").tex
NOM_DONATEUR=$(echo $1 | tr "/" ".")
STATUT_DONATEUR=$(echo $2 | tr "/" ".")
ADRESSE_DONATEUR=$(echo $3 | tr "/" ".")
SOMME=$(echo $4 | tr "/" ".")
DATE_VERSEMENT=$(echo $5 | tr "/" ".")
FORME_DON=$(echo $6 | tr "/" ".")
NATURE_DON=$(echo $7 | tr "/" ".")
MODE_VERSEMENT=$(echo $8 | tr "/" ".")
cat RECU_FISCAL.tex > "$FILE"
sed -i "s/NOM-DONATEUR/$NOM_DONATEUR/" "$FILE"
sed -i "s/STATUT-DONATEUR/$STATUT_DONATEUR/" "$FILE"
sed -i "s/ADRESSE-DONATEUR/$ADRESSE_DONATEUR/" "$FILE"
sed -i "s/SOMME/$SOMME/" "$FILE"
sed -i "s/DATE-VERSEMENT/$DATE_VERSEMENT/" "$FILE"
sed -i "s/FORME-DON/$FORME_DON/" "$FILE"
sed -i "s/NATURE-DON/$NATURE_DON/" "$FILE"
sed -i "s/MODE-VERSEMENT/$MODE_VERSEMENT/" "$FILE"
pdflatex "$FILE"
rm -f *.aux *.log

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB