content/generate.sh

13 lines
167 B
Bash

#!/bin/bash
FILE="${1}"
OUTPUT="${2}"
BIN=$(mktemp)
python encode.py "${FILE}" "${BIN}"
cat "${BIN}" | qrencode -s 10 -8 -o "${OUTPUT}"
rm -f "${BIN}"
#-O3 -flto