diff --git a/build.sh b/build.sh index 4ba1a62..a9868b4 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,9 @@ -#!/bin/sh +#!/bin/sh -xe -set -xe +QROPTS="--verbose --background=00000000 --foreground=FFFFFFFF" -for line in $(cat wallets.txt); do - label=$(echo $line | cut -d: -f1) - address=$(echo $line | cut -d: -f2) - qrencode --verbose -s 10 --background=00000000 --foreground=FFFFFFFF -o $label.png $address -done - -inkscape -w 1024 --export-type="png" donate.svg +xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS="$QROPTS" sh -c ' + label="${1%%:*}"; address="${1#*:}"; + qrencode -t SVG --svg-path-width=1024 $QROPTS -o "$label.svg" "$address" + qrencode -s 10 $QROPTS -o "$label.png" "$address" +' _ diff --git a/doc.md b/doc.md index 15c331f..638bd0d 100644 --- a/doc.md +++ b/doc.md @@ -7,7 +7,6 @@ The sole purpose of all these files and scripts is to generate [donate.png](./do To regenerate the image just run `./build.sh` script. It uses some external program that you will have to install manually: - [qrencode](https://fukuchi.org/works/qrencode/) -- [inkscape](https://inkscape.org/) ## TODO