From 6e6d8fe3b86502f8018dfcd4aec0b87be449449c Mon Sep 17 00:00:00 2001 From: Jan Chren Date: Fri, 18 Mar 2016 14:21:14 +0100 Subject: [PATCH] update.ps1: increase the listing limit to 3 listing now contains README --- tools/update.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/update.ps1 b/tools/update.ps1 index 8bdd16d..ba22fd6 100644 --- a/tools/update.ps1 +++ b/tools/update.ps1 @@ -16,10 +16,10 @@ $PROJECT_ROOT_DIR = $(Resolve-Path "$PSScriptRoot\..") $OUTPUT_DIR = "$PROJECT_ROOT_DIR\src" $TMP_FILE = "$env:TMP\wxsqlite3.zip" -$WXSQLITE_SF_API_URL = "http://sourceforge.net/projects/wxcode/rss?path=/Components/wxSQLite3&limit=2" +$WXSQLITE_SF_API_URL = "http://sourceforge.net/projects/wxcode/rss?path=/Components/wxSQLite3&limit=3" $WXSQLITE_SF_API_SRC = $WebClient.DownloadString($WXSQLITE_SF_API_URL) $WXSQLITE_URL = $WXSQLITE_SF_API_SRC -replace "`n|`r" -replace '.*([^<]*\.zip\/download).*','$1' - +$WXSQLITE_URL function compareVersions ($a, $b){ (New-Object System.Version($a)).CompareTo((New-Object System.Version($b)))