Rev 253 | Rev 301 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 253 | Rev 277 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | # version: v0.1.1j
|
4 | # version: v0.1.1j
|
| 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
|
|
| - | 10 | # so imho it should check for DISPLAY at least
|
|
| - | 11 | # like that
|
|
| - | 12 | ||
| - | 13 | if [ "x$DISPLAY" == "x" ]; then |
|
| - | 14 | echo "Its quite possible that you aren't executing this script from X system, or" |
|
| - | 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" |
|
| - | 17 | exit
|
|
| - | 18 | fi
|
|
| - | 19 | ||
| 9 | echo ';; This file may be used to print gschem schematics from the |
20 | echo ';; This file may be used to print gschem schematics from the |
| 10 | ;; command line. Typical usage is:
|
21 | ;; command line. Typical usage is:
|
| 11 | ;;
|
22 | ;;
|
| 12 | ;; gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
|
23 | ;; gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
|
| 13 | ;;
|
24 | ;;
|