port contrib/download_prerequisites script to macOS

Damian Rouson damian@sourceryinstitute.org
Wed Apr 5 01:11:00 GMT 2017


All,

The attached patch modifies the contrib/download_prerequisites script to work on macOS. 
The revised script detects the operating system and adjusts the shasum and md5 commands 
to their expected name and arguments on macOS.  The revised script also uses curl if 
wget is not present.  macOS ships with curl but not wget.

Tested on macOS and Lubuntu and Fedora Linux distributions. 

Ok for trunk?

Damian


2017-04-05  Damian Rouson  <damian@sourceryinstitute.org>

        * download_prerequisites (md5_check): New function emulates Linux
        'md5 --check' on macOS.  Modified script for macOS compatibility.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macOS-download_prerequisites.diff
Type: application/octet-stream
Size: 3495 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170405/890e18b8/attachment.obj>


More information about the Gcc-patches mailing list