IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2010-08-29 03:58:04 (13 years 7 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | b3728b5c54d91dbb712e81c9404065e62cd66b18 |
Message: | fpd2pdf: ignore fped backup files (and option -a to still use them) - scripts/fpd2pdf: ignore files whose name contains a tilde - scripts/fpd2pdf: option -a to also use files whose name contains a tilde |
Files: |
scripts/fpd2pdf (2 diffs) |
Change Details
scripts/fpd2pdf | ||
---|---|---|
14 | 14 | |
15 | 15 | usage() |
16 | 16 | { |
17 | echo "usage: $0 [-o out.pdf] file.pdf ..." 1>&2 | |
17 | cat <<EOF 1>&2 | |
18 | usage: $0 [-a] [-o out.pdf] file.pdf ... | |
19 | ||
20 | -a also include files whose name contains a tilde (backup files) | |
21 | -o out.pdf write to the specified file (default: standard output) | |
22 | EOF | |
18 | 23 | exit 1 |
19 | 24 | } |
20 | 25 | |
21 | 26 | |
22 | 27 | out=- |
28 | all=false | |
29 | ||
23 | 30 | while true; do |
24 | 31 | case "$1" in |
32 | -a) all=true | |
33 | shift;; | |
25 | 34 | -o) [ -z "$2" ] && usage |
26 | 35 | out="$2" |
27 | 36 | shift 2;; |
... | ... | |
33 | 42 | [ -z "$1" ] && usage |
34 | 43 | |
35 | 44 | eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out -f \ |
36 | `for n in "$@"; do echo "<(fped -p \"$n\" -)"; done` | |
45 | `for n in "$@"; do $all || [ "$n" = "${n/\~/}" ] && \ | |
46 | echo "<(fped -p \"$n\" -)"; done` |