Hi Onno,
I've been poking around the SourceForge webpages but could not find a
way to download latest tgz with one single command.
So, I hashed up a script for download.
This works at least on my Ubuntu 18.04 system, but will most likely
break the minute SourceForge updates their pages :(
73's & HNY de Kari, oh2gqc
Oh, and the script:
#!/bin/bash
#
# Download latest WSJT-X source package from SourceForge
#
# Step 1: Retrieve web page containing name of the package
tempfile=$(mktemp)
wget -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/108.0.0.0 Safari/537.36" \
https://sourceforge.net/projects/wsjt/files/ \
-O $tempfile
#
# Step 2: Extract version string
str=$(grep -A1 'Download Latest Version' $tempfile)
version=$(str2=$(echo ${str##*label\"\>}) ; echo ${str2%\.tgz*} )
echo "Current version is $version"
#
# Step 3: Download
wgethttps://downloads.sourceforge.net/project/wsjt/${version}/${version}.tgz
rm $tempfile
On 31.12.2022 0.57, Onno Benschop via wsjt-devel wrote:
if I understood Onno's problem correctly [ probaply not ... ] what
he wants is one single URL that would dowload the latest
source.tgz version ( without knowing exactly what the version
number or name of the package is ).
You understood perfectly. This is precisely what I'm looking for.
--
finger painting on glass is an inexact art - apologies for any errors
in this scra^Hibble
()/)/)() ..ASCII for Onno..
On Sat, 31 Dec 2022, 02:05 Kari Sillanmäki via wsjt-devel,
<wsjt-devel@lists.sourceforge.net> wrote:
Hi Joe & Onno
On 30.12.2022 16.41, Joe Taylor via wsjt-devel wrote:
Hi Onno,
I'm not sure that I understand your exact problem. Does this link
not work for your purpose?
https://sourceforge.net/projects/wsjt/files/wsjtx-2.6.0-rc5/wsjtx-2.6.0-rc5.tgz/download
That link works, but if I understood Onno's problem correctly [
probaply not ... ] what he wants is one single URL that would
dowload the latest source.tgz version ( without knowing exactly
what the version number or name of the package is ).
The problem seems to be that "wget" utility downloads just the
windows executable. Funny enough, using browser to access URL
https://sourceforge.net/projects/wsjt/files/latest DOES return the
source.tgz!!
Some clever logic behind sourceforge server I guess..
73's de Kari, oh2gqc
-- 73, Joe, K1JT
On 12/30/2022 1:23 AM, Onno Benschop via wsjt-devel wrote:
Having spent several days attempting to find the answer in the
documentation and the sourceforge HowTo information, I'm stuck.
Is there a static link to the latest version of the source .tgz
file, so I can automate the compilation of the latest released
version under Linux?
According to the sourceforge documentation the link to the
latest version is:
* https://sourceforge.net/projects/wsjt/files/latest
<https://sourceforge.net/projects/wsjt/files/latest>
<https://sourceforge.net/projects/wsjt/files/latest>
Unfortunately that link only ever returns a Windows .exe file
when using wget. I've not been able to discover a way to provide
either URL options or tweak the user-agent of my wget command,
to actually ever get the .tgz file.
Although I can download a specific version using version numbers
like this, this means that the URL is hard-coded and version
dependent which defeats the purpose of what I'm working on:
*
https://downloads.sourceforge.net/project/wsjt/wsjtx-2.6.0-rc5/wsjtx-2.6.0-rc5.tgz
<https://downloads.sourceforge.net/project/wsjt/wsjtx-2.6.0-rc5/wsjtx-2.6.0-rc5.tgz>
<https://downloads.sourceforge.net/project/wsjt/wsjtx-2.6.0-rc5/wsjtx-2.6.0-rc5.tgz>
I can clone it with git, which takes a long time, even at
depth=1, but that requires another separate clone and build for
hamlib. This works, mostly, but it means that I'm not actually
testing the latest source code .tgz file:
* git clone --progress --depth 1
https://git.code.sf.net/p/wsjt/wsjtx
<https://git.code.sf.net/p/wsjt/wsjtx>
<https://git.code.sf.net/p/wsjt/wsjtx>
Is there a symbolic link to the latest version, cunningly named
something like "wsjtx-latest.tgz" which doesn't change between
versions?
--
Onno Benschop
()/)/)() ..ASCII for Onno..
|>>? ..EBCDIC for Onno..
--- -. -. --- ..Morse for Onno..
If you need to know: "What computer should I buy?"
http://goo.gl/spsb66 <http://goo.gl/spsb66> <http://goo.gl/spsb66>
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 -
o...@itmaze.com.au <mailto:o...@itmaze.com.au>
<mailto:o...@itmaze.com.au>
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel