Commit 34972145 authored by mntmn's avatar mntmn
Browse files

add debian package generator for reform-handbook

parent 6c663fa1
Pipeline #191 failed with stage
in 1 minute and 44 seconds
#!/bin/bash
version="1.0-1"
target="./reform-handbook_${version}/usr/share/doc/reform-handbook"
mkdir -p "${target}/html"
rm -r "${target}/html"
cp -Rv ../src/build/html "${target}/"
rm "${target}/html/_static/schem/"*.sla
rm "${target}/html/_static/"*.sla
for f in "${target}/html/_images/*"
do
echo "mogrify: $f"
mogrify -resize 1280 "$f"
done
du -ch ./reform-handbook_${version}
dpkg-deb -b ./reform-handbook_${version}
Package: reform-handbook
Version: 1.0-1
Section: base
Priority: optional
Architecture: all
Depends: bash, xdg-utils, elinks
Maintainer: Lukas F. Hartmann <lukas@mntre.com>
Description: MNT Reform Operator Handbook
The HTML version of the handbook for the MNT Reform OSHW laptop, plus a helper script /usr/bin/reform-handbook which opens the web pages using xdg-open or elinks. Includes a copy of the Inter font by rsms.
#!/bin/bash
if [ -z ${DISPLAY+x} ]
then
# not running under X/wayland
elinks /usr/share/doc/reform-handbook/html/index.html
else
xdg-open /usr/share/doc/reform-handbook/html/index.html
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment