#!/bin/sh # # gpe-helpviewer -- RECONSTRUCTION, not Psion's binary. # # Psion's own viewer is gpe/gpe-helpviewer tag GPE_HELPVIEWER_6 on # cvs.psiondev.com, which is dead, and it needed gtkhtml-3.0 which this # rootfs does not carry. Every Psion application calls it the same way: # # gpe-helpviewer /usr/share/help//index.html # # so this turns that into a URL and hands it to gpe-mini-browser, which is # installed. Psion's recipe also aliases gnome-help-browser and yelp to it. # case "$1" in ""|-*) set -- /usr/share/help/help-index.html ;; esac case "$1" in *://*) url="$1" ;; /*) url="file://$1" ;; *) url="file://$PWD/$1" ;; esac [ -f "${1#file://}" ] || url="file:///usr/share/help/doc-not-installed.html" exec gpe-mini-browser "$url"