Fix dockerfile and add a quick test

See readme for instructions
This commit is contained in:
2023-07-03 15:12:06 +02:00
parent 09f3765f4f
commit a62ecd15d7
5 changed files with 1007 additions and 9 deletions

View File

@@ -7,14 +7,18 @@ SMALL='220' # Small container (220g)
SIZE=$LARGE
DLUO='décembre 2023'
LOT='0722-2'
TENEUR='50%'
FRUIT='80g'
STICKER='Gelée - Cassis.svg'
TENEUR='50' # %
FRUIT='80' # g
STICKER='Gelée Extra - Cassis.svg'
DATADIR=/data
PDF="`basename \"${STICKER}\" .svg` - ${LOT} (${SIZE}g).pdf"
./makesticker.py --landscape --dluo "$DLUO" --lot "$LOT" --teneur "$TENEUR" --fruit "$FRUIT" --size "$SIZE" -o out.svg "$STICKER" && \
./makeplanche.py -o pout.svg -t planche.svg.in out.svg && \
here=$(dirname $(readlink -f $0))
cd $DATADIR
$here/makesticker.py --landscape --dluo "$DLUO" --lot "$LOT" --teneur "$TENEUR" --fruit "$FRUIT" --quantite "$SIZE" -o out.svg "$STICKER" && \
$here/makeplanche.py -o pout.svg -t $here/planche.svg.in out.svg && \
rm out.svg && \
inkscape --export-type="png" --export-dpi=$DEFAULT_DPI pout.svg && \
rm pout.svg && \