summaryrefslogtreecommitdiff
path: root/erzeuge-Barcodes
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-16 20:25:43 +0200
committerErich Eckner <git@eckner.net>2019-10-16 20:25:43 +0200
commit5f92bc1a6f2d7004c88a9f8a4662d3577052ef36 (patch)
treea726d9409a0e9c84ca1067c8139daa3bd650aff5 /erzeuge-Barcodes
parentac6639fb6dfa4f6539911f00797236a91780b2a4 (diff)
downloadSchraubendatenbank-5f92bc1a6f2d7004c88a9f8a4662d3577052ef36.tar.xz
erzeuge-Barcodes neu
Diffstat (limited to 'erzeuge-Barcodes')
-rwxr-xr-xerzeuge-Barcodes10
1 files changed, 10 insertions, 0 deletions
diff --git a/erzeuge-Barcodes b/erzeuge-Barcodes
new file mode 100755
index 0000000..dfed51e
--- /dev/null
+++ b/erzeuge-Barcodes
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+{
+ printf 'SELECT `Barcode` FROM `%s`;\n' \
+ 'Schrauben' 'Muttern' 'Unterlegscheiben'
+} \
+| mysql -N --raw --batch \
+| barcode -n -u mm -t5x10+0+20 -o bc.ps
+
+ps2pdf bc.ps