From d055baae3c0e32e9ecd4bf83e8be64ce3577a872 Mon Sep 17 00:00:00 2001 From: Leon Gaultier Date: Tue, 15 Apr 2014 13:09:34 +0200 Subject: [PATCH] =?UTF-8?q?bessere=20Version=20zum=20feststellen=20der=20l?= =?UTF-8?q?etzten=20verf=C3=BCgbaren=20Version=20von=20Calibre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CAU_Installer | 2 +- calibre-autoupdate | 3 +++ calibre-autoupdate.conf | 1 + calibre-autoupdate_checks.h | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CAU_Installer b/CAU_Installer index c207e81..3c0ab34 100755 --- a/CAU_Installer +++ b/CAU_Installer @@ -18,7 +18,7 @@ # Programmversion PROGNAME=`basename $0` -VERSION="0.20" +VERSION="0.20.90.1" ##### Variablen deklaration ##### # Downloadseite der Linuxinstallation diff --git a/calibre-autoupdate b/calibre-autoupdate index 9ccdd30..7fe6651 100644 --- a/calibre-autoupdate +++ b/calibre-autoupdate @@ -88,6 +88,9 @@ # installation wird automatisch die Konfigurationsdatei des Updaters angepasst (übergabe CalibreInstallOrt) # Es wird wieder geprüft ob Calibre installiert ist bevor der Updater gestartet wird # +# v0.21 Um die neuste Version von der Calibrehomepage fest zu stellen wurde die Routine geändert. Es wird nun ganz +# einfach und simpel die Seite http://calibre-ebook.com/downloads/latest_version abgefragt :-D +# # TODO Auslesen der Download URL von der Download Seite # kontrolle ob alle benötigten programme für das skript vorhanden sind # diff --git a/calibre-autoupdate.conf b/calibre-autoupdate.conf index d91a94d..1131465 100644 --- a/calibre-autoupdate.conf +++ b/calibre-autoupdate.conf @@ -4,6 +4,7 @@ # Calibre Download Seite URL. CALIBRE_DOWNLOAD_PAGE=http://calibre-ebook.com/download_linux +CALIBRE_LAST_VERSION_PAGE=http://calibre-ebook.com/downloads/latest_version # Installationsor von Calibre. CALIBRE_INSTALL_LOCATION=_-CALIBRE_INSTALL_LOCATION-_ # die Download URL diff --git a/calibre-autoupdate_checks.h b/calibre-autoupdate_checks.h index fdcb222..f53f8c4 100644 --- a/calibre-autoupdate_checks.h +++ b/calibre-autoupdate_checks.h @@ -49,7 +49,8 @@ func_check_run_calibre () { func_check_version () { #Ermitteln der letzten aktuell verfügbaren Version - LATEST_VERSION=`curl -s $CALIBRE_DOWNLOAD_PAGE | grep 'latest release of calibre' | sed 's/[^0-9.]*\([1-9]*[0-9]\.[1-9]*[0-9]\).*/\1/'` + # ALTE VERSION -- LATEST_VERSION=`curl -s $CALIBRE_DOWNLOAD_PAGE | grep 'latest release of calibre' | sed 's/[^0-9.]*\([1-9]*[0-9]\.[1-9]*[0-9]\).*/\1/'` + LATEST_VERSION=`curl -s $CALIBRE_LAST_VERSION_PAGE` #Ermitteln der aktuell installierten Version. CURRENT_VERSION=`calibre --version | sed 's/[^0-9.]*\([0-9.]*\).*/\1/'`