Rev 304 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 304 | Rev 315 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/bash
|
1 | #!/bin/bash
|
2 | 2 | ||
3 | # date: 2008-11-02 / 2008-11-24
|
3 | # date: 2008-11-02 / 2008-11-24 / 2008-12-16
|
4 | # version: v0.1.2j
|
4 | # version: v0.1.3j
|
5 | # creator: Jelle de Jong <jelledejong@powercraft.nl>
|
5 | # creator: Jelle de Jong <jelledejong@powercraft.nl>
|
6 | # project: openarm sbc
|
6 | # project: openarm sbc
|
7 | # licence: gplv3
|
7 | # licence: gplv3
|
8 | 8 | ||
9 | # this file wont work with no $DISPLAY and requires psnup
|
9 | # this file wont work with no $DISPLAY and requires psnup
|
Line 15... | Line 15... | ||
15 | echo "you don't have DISPLAY env variable set. I cannot continue because gschem won't" |
15 | echo "you don't have DISPLAY env variable set. I cannot continue because gschem won't" |
16 | echo "work unless you set one, even with xserver with dummy output i hope" |
16 | echo "work unless you set one, even with xserver with dummy output i hope" |
17 | exit
|
17 | exit
|
18 | fi
|
18 | fi
|
19 | 19 | ||
- | 20 | pdf_dir="$HOME/openarm/working/gschem/pdf" |
|
- | 21 | sch_dir="$HOME/openarm/working/gschem/sch" |
|
- | 22 | project="openarm-sbc" |
|
- | 23 | ||
20 | echo ';; This file may be used to print gschem schematics from the |
24 | echo ';; This file may be used to print gschem schematics from the |
21 | ;; command line. Typical usage is:
|
25 | ;; command line. Typical usage is:
|
22 | ;;
|
26 | ;;
|
23 | ;; gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
|
27 | ;; gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
|
24 | ;;
|
28 | ;;
|
Line 41... | Line 45... | ||
41 | (gschem-use-rc-values)
|
45 | (gschem-use-rc-values)
|
42 | 46 | ||
43 | ; filename is specified on the command line
|
47 | ; filename is specified on the command line
|
44 | (gschem-postscript "dummyfilename")
|
48 | (gschem-postscript "dummyfilename")
|
45 | 49 | ||
46 | (gschem-exit)' > ~/openarm/working/gschem/pdf/print.scm |
50 | (gschem-exit)' > $pdf_dir/print.scm |
47 | - | ||
48 | pdf_dir="$HOME/openarm/working/gschem/pdf" |
- | |
49 | sch_dir="$HOME/openarm/working/gschem/sch" |
- | |
50 | project="openarm-sbc" |
- | |
51 | 51 | ||
52 | for file in "$sch_dir"/*.sch |
52 | for file in "$sch_dir"/*.sch |
53 | do
|
53 | do
|
54 | if [ -f "$file" ] |
54 | if [ -f "$file" ] |
55 | then
|
55 | then
|