OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | --- fbida-2.07.orig/fbgs 2010-10-18 20:26:32.264246468 +0400 |
| 2 | +++ fbida-2.07/fbgs 2010-10-18 20:56:04.670332976 +0400 |
| 3 | @@ -1,7 +1,7 @@ |
| 4 | -#!/bin/bash |
| 5 | +#!/bin/sh |
| 6 | |
| 7 | # tmp dir |
| 8 | -DIR="$(mktemp -dtp ${TMPDIR-/var/tmp} fbgs-XXXXXX)" |
| 9 | +DIR="$(mktemp -dtp ${TMPDIR-/tmp} fbgs-XXXXXX)" |
| 10 | test -d "$DIR" || exit 1 |
| 11 | trap "rm -rf $DIR" EXIT |
| 12 | |
| 13 | @@ -33,7 +33,22 @@ |
| 14 | -p) password="$2" |
| 15 | shift; shift |
| 16 | ;; |
| 17 | - -h) echo fixme: help text |
| 18 | + -h) echo " |
| 19 | +fbgs - poor man's PostScript/pdf viewer for the linux framebuffer con- |
| 20 | +sole |
| 21 | + |
| 22 | +fbgs [ options ] file |
| 23 | + |
| 24 | +fbgs is a simple wrapper script which takes a PostScript or pdf file as |
| 25 | +input, renders the pages using ghostscript into a temporary directory |
| 26 | +and finally calls fbi to display them. |
| 27 | + |
| 28 | +fbps understands all fbi options (they are passed through). Addition- |
| 29 | +ally you can specify -l, -xl or -xxl to get the pages rendered with |
| 30 | +100, 120 or 150 dpi (default is 75). You can use option -p <password> |
| 31 | +if your PDF file requires password. With -c you can ask fbgs to render |
| 32 | +the pages in color. |
| 33 | +" |
| 34 | exit 1 |
| 35 | ;; |
| 36 | -c) device="png16m" |
| 37 |
