#!/bin/sh #@@example qr(hello world, 1mm) #@@purpose Generate QR code on silk #@@desc Generate the specified QR code as silk lines #@@params text,pixel_size,level #@@thumbsize 2 #@@param:text ASCII text to encode #@@param:pixel_size width and height of each pixel #@@dim:pixel_size #@@param:level error correction level #@@optional:level #@@enum:level:L low #@@enum:level:H high #@@default:L libdir="" for n in $PCB_RND_PCBLIB/parametric `dirname $0` /usr/local/share/pcb-rnd/pcblib/parametric /usr/share/pcb-rnd/pcblib/parametric do if test -f "$n/common.awk" then libdir="$n" break fi done if test -z "$libdir" then echo "pcblib/parametric/common.awk not found." >&2 exit 1 fi awk -f $libdir/common.awk -f `dirname $0`/qr.awk -v "args=$*" -v gen=`basename $0` -v "genfull=$0"