Publicizing MacPorts [installation]

Bjarne D Mathiesen macintosh at mathiesen.info
Sat May 22 14:01:42 UTC 2021



Joshua Root wrote:
> On 2021-5-22 23:17 , Bjarne D Mathiesen wrote:
>>
>> My own installation script looks something like this :
>>
>> #!/usr/bin/env bash
>>
>> prefix=$(1:-'/opt/local')
>> version=${2:-'2.7.0'}
> 
> I you want to automatically use the latest version, it can be found in
> <https://github.com/macports/macports-base/blob/master/config/RELEASE_URL>.
> 
> - Josh
> 

so something like this :
declare version=$( curl --url
'https://raw.githubusercontent.com/macports/macports-base/master/config/RELEASE_URL'
)
version=${version##*/v}


-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
OpenCore + macOS 10.15.7 Catalina
MacPro 2010 ; 2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC
ATI Radeon RX 590 8 GB


More information about the macports-dev mailing list