File: testbarcode

package info (click to toggle)
barcode 0.94-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 612 kB
  • ctags: 370
  • sloc: ansic: 2,205; perl: 1,676; python: 416; sh: 187; makefile: 170; awk: 74; sed: 5
file content (35 lines) | stat: -rwxr-xr-x 1,152 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

# horrible kludge!
# this is not a complete test suite, just some checks

ean13="012345678901"
ean132="012345678901 12"
ean135="012345678901 12345"
ean8="0123456"
upca="01234567890"
upca2="01234567890 12"
upca5="01234567890 12345"
upce="012345"
code39="code39"
isbn="1-56592-292-1"
isbn5="1-56592-292-1 90000"
code128b="one-and,another"
code128c="0011223"
i25="12345"

rm *ps

../sample > 00all.ps

ls .. | ../barcode -t 3x4+40+40 >               01table-no-unit.ps
ls .. | ../barcode -u mm -t 3x4+10+10 >         02table-10mm.ps
ls .. | ../barcode -u mm -t 3x4+10+20-40-80 >   03table-uncenter.ps
ls .. | ../barcode -u in -t 3x4+1+2-3-4 >       04table-uncenter-in.ps
ls .. | ../barcode -u in -t 2x2 -p 4x4 >        05table-small4in-page.ps
ls .. | ../barcode -u in -t 2x2 -p a5 >         06table-a5-page.ps
ls .. | ../barcode -u cm -t 2x2 -p 15x15 >      07table-small15cm-page.ps
ls .. | ../barcode -u cm -t 2x2 -m 3x5 >        08table-bigmargin.ps
echo $ean13 | ../barcode -u mm -g 40x30 -E >    09ean40mm-30mm.ps
echo $isbn5 | ../barcode -u cm -g 6x5 -E >      10isbn6cmx5cm.ps
echo $upca | ../barcode -E >                    11upca.ps