GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — HORNET-RV32IMF/scripts/docs_figures.sh at main · GSTL-ITU/HORNET-RV32IMF Expand file tree/ Copy pathdocs_figures.shMore file actions executable file ·30 lines (30 loc) · 1.16 KB / Copy pathdocs_figures.shFile metadata and controlsexecutable file ·30 lines (30 loc) · 1.16 KB 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 #!/bin/sh # Exports the draw.io figures of the documentation. # # scripts/docs_figures.sh [figure.drawio ...] # # docs/figures/<name>.drawio is the source of each figure (edit it with # draw.io desktop or the VS Code draw.io extension). This script writes # <name>.svg (GitHub pages) and <name>.pdf (PDF manual) next to it, for every # figure newer than its exports, or for the figures given as arguments. # draw.io runs on the host (DRAWIO, default: drawio in PATH); the exports are # committed, so building the manual needs no draw.io. set -e root=$(cd "$(dirname "$0")/.." && pwd) drawio=${DRAWIO:-drawio} if ! command -v "$drawio" >/dev/null 2>&1; then echo "draw.io not found: install draw.io desktop (github.com/jgraph/drawio-desktop) or set DRAWIO" >&2 exit 1 fi if [ $# -eq 0 ]; then set -- "$root"/docs/figures/*.drawio fi for src in "$@"; do base=${src%.drawio} for fmt in svg pdf; do if [ ! -f "$base.$fmt" ] || [ "$src" -nt "$base.$fmt" ]; then echo "$(basename "$src") -> $(basename "$base.$fmt")" "$drawio" --no-sandbox -x -f $fmt --theme light --crop -b 8 -o "$base.$fmt" "$src" >/dev/null 2>&1 fi done done |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |