config:master-pdf-editor
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| config:master-pdf-editor [2020/11/01 11:49] – created Wuff | config:master-pdf-editor [2023/10/12 12:01] (current) – Wuff | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| https:// | https:// | ||
| + | |||
| + | Required dependencies | ||
| + | < | ||
| + | |||
| Create the following script in / | Create the following script in / | ||
| <code - / | <code - / | ||
| - | #!/bin/bash | + | #!/bin/sh |
| if [ " | if [ " | ||
| then | then | ||
| Line 14: | Line 18: | ||
| #get latest pdf version number for qt 5.4.1 or later | #get latest pdf version number for qt 5.4.1 or later | ||
| url=$(curl -s " | url=$(curl -s " | ||
| - | | grep " | + | | grep -o -P " |
| #get latest master pdf version on web | #get latest master pdf version on web | ||
| mpe_ver=$(echo " | mpe_ver=$(echo " | ||
| Line 24: | Line 29: | ||
| mpemv=$(echo " | mpemv=$(echo " | ||
| mpecv=$(echo " | mpecv=$(echo " | ||
| - | if [[ " | + | if [ " |
| then | then | ||
| mpecv=0 | mpecv=0 | ||
| Line 30: | Line 35: | ||
| #download and install only if web version greater than current version | #download and install only if web version greater than current version | ||
| #if main web version doesn' | #if main web version doesn' | ||
| - | if [[ " | + | if [ " |
| then | then | ||
| echo " | echo " | ||
| cd /tmp/ | cd /tmp/ | ||
| - | wget https:// | + | wget "${url}" |
| - | dpkg -i master-pdf-editor-${mpe_ver}-qt5.x86_64.deb | + | dpkg -i master-pdf-editor-${mpe_ver}-qt5.* |
| - | rm master-pdf-editor-${mpe_ver}-qt5.x86_64.deb | + | rm master-pdf-editor-${mpe_ver}-qt5.* |
| - | else | + | else |
| echo " | echo " | ||
| echo "No upgrade necessary" | echo "No upgrade necessary" | ||
| fi | fi | ||
| + | |||
| </ | </ | ||
config/master-pdf-editor.1604231396.txt.gz · Last modified: (external edit)