Well, as i said, i already have a working script that'll pull the node binary and nave is just doing the same thing, the problem with doing things like this with shell utils is that your essentially parsing html via regex and that tends to break very easily. I was really hoping there was something on the nodejs site that might make it easier to retrieve a release via arch/platform in a more structured way i guess?
Its not that important, what i have already works, but minor changes to the http://nodejs.org/dist/ <http://nodejs.org/dist/latest/>.... directory will ultimately break the script, if you get what i mean. Regards, Paul On Saturday, 12 January 2013 13:05:35 UTC+11, Forrest L Norvell wrote: > > Take a look at how Isaac's nave does it: > https://github.com/isaacs/nave/blob/master/nave.sh > > All it needs is egrep, curl, sort, tail and sed. > > F > > On Fri, Jan 11, 2013 at 5:31 PM, Paul J R <[email protected] <javascript:> > > wrote: > >> Hi All, >> >> Im writing an lxc container template for to running node app's and >> depending on the options the template script may try to download the latest >> binary version of nodejs. Currently im doing this by hitting >> http://www.nodejs.org/dist/latest/ and attempting to find the >> appropriate binary using a combo of wget/grep/sed, but parsing html this >> way isnt generally a great idea and im trying to keep the dependencies the >> template introduces to a minimum (i.e. without using perl/python/php or >> nodejs itself or even depending on the distro having nodejs). Looking >> around (and asking in irc) I couldn't really find anything that might >> simplify the request (i.e. a link like >> http://www.nodejs.org/dist/<http://www.nodejs.org/dist/latest/>linux/64/latest.tar.gz >> >> would be handy) and I was wondering if anyone has any suggestions or knows >> of a simple way of getting a link to the latest nodejs binary based on >> platform/architecture? >> >> Regards, PJR >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
