Update developer install script
authorColin Clark <colin.clark@cclark.uk>
Tue, 26 Dec 2023 13:01:46 +0000 (13:01 +0000)
committerColin Clark <colin.clark@cclark.uk>
Tue, 26 Dec 2023 13:01:46 +0000 (13:01 +0000)
Include mdl snap.

scripts/devel-install.sh

index 6afc069..0f345cb 100755 (executable)
@@ -30,25 +30,32 @@ then
     exit 1
 fi
 
-if ! zenity --title="Install files for Geeqie development" --question --text "This script will install:\n
+if ! zenity --title="Install files for Geeqie development" --question --no-wrap --text "This script will install:\n
 <tt>
 curl                # for this script
 default-jre         # for doxygen diagrams
 libdw-dev           # for devel=enabled
 libdwarf-dev        # for devel=enabled
 libunwind-dev       # for devel=enabled
-shellcheck          # for meson tests
+mdl                 # for meson tests (markdown files)
+shellcheck          # for meson tests (shell scripts)
 texlive-font-utils  # for doxygen diagrams
 xvfb                # for meson tests
 </tt>
 
-The following will be downloaded to $HOME/bin/ and made executable:\n
+The following will be downloaded to $HOME/bin/ and made executable:
 <tt>
 https://github.com/plantuml/plantuml/releases/download/<i>latest</i>/plantuml-<i>latest</i>.jar  # for doxygen diagrams
-https://raw.githubusercontent.com/Anvil/bash-doxygen/master/doxygen-bash.sed       # for documenting script files\n
+https://raw.githubusercontent.com/Anvil/bash-doxygen/master/doxygen-bash.sed       # for documenting script files\
 </tt>
 
-Continue?" --width=300
+The following snap will be installed:
+<tt>
+snapd    # for installing snaps
+mdl      # for checking markdown files\n
+</tt>
+
+Continue?"
 then
     exit 0
 fi
@@ -59,6 +66,8 @@ then
     exit 1
 fi
 
+sudo apt update
+
 sudo apt install curl
 sudo apt install default-jre
 sudo apt install libdw-dev
@@ -68,6 +77,9 @@ sudo apt install shellcheck
 sudo apt install texlive-font-utils
 sudo apt install xvfb
 
+sudo apt install snapd
+sudo snap install mdl
+
 cd "$HOME"/bin || exit 1
 
 if ! [ -f doxygen-bash.sed ]