I see only two branches in update_emsdk; one for 'WINDOWS' and one for 'OSX
or LINUX'. They all call the same download_and_unzip function, which calls
the same untargz function, which makes the same shell-out to tar on any OS.
(.zip files are used on Windows, so something different is called in that
case. .tar.gz are used on both Mac and Linux.)

-- brion

On Wed, Mar 30, 2016 at 12:51 AM, <[email protected]> wrote:

> Hi Brion,
>
> I don't know anything about Macs but as far as I can remember the install
> script handles them separately -actually I saw there three branches:
> win/linux/mac- so the tar/gtar changes for linux won't affect the mac
> branch I guess.
>
> Regards,
> r0ller
>
> 2016. március 29., kedd 21:59:38 UTC+2 időpontban Brion Vibber a
> következőt írta:
>>
>> On Tue, Mar 29, 2016 at 1:04 AM, <[email protected]> wrote:
>>
>>>
>>> 2) As far as I know, tar on NetBSD is the normal BSD tar and gtar is the
>>> GNU tar. While it's the other way around on linux: tar is the GNU tar and
>>> the BSD tar is called bsdtar:) That's why I rather changed the call from
>>> tar to gtar (instead of looking for an option that is similar to the one
>>> that was unaccepted by BSD tar) in order to retain the GNU tar behaviour.
>>>
>>
>> Note that Mac OS X also comes with BSD tar as 'tar' but doesn't provide
>> GNU tar, so there's no 'gtar' available there. However it might be extended
>> with an option that isn't in the NetBSD version... probably the '--strip'
>> option?
>>
>> Might be best to do a check for 'gtar' and use that if present, but fall
>> back to 'tar' if it's not; that should work pretty reliably across BSD and
>> GNU/Linux variants.
>>
>> -- brion
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to