[Vm-dev] [Pharo-dev] Stable Pharo VM for Linux?
Eliot Miranda
eliot.miranda at gmail.com
Mon Jul 3 03:19:27 UTC 2017
Hi Alistair,
looks good to me. Put in a PR. We can refine the script if necessary when it's in use.
_,,,^..^,,,_ (phone)
> On Jul 2, 2017, at 8:42 AM, Alistair Grant <akgrant0710 at gmail.com> wrote:
>
>
> Hi Eliot & Luke,
>
> On Fri, Jun 30, 2017 at 07:44:01AM +0000, Alistair Grant wrote:
>>> ...
>>
>>> Feel free to add a script to the scripts directory that automates
>>> this. e.g. scripts/checkoutVMbyDate ?
>>
>> Good idea, I'll put together a pull request.
>>
>> Cheers,
>> Alistair
>
>
> OK, I enjoy writing bash scripts almost as much as writing perl, and I
> refuse to write perl, so... I'm open to suggestions for improving the
> script, coding styles, etc.
>
> The script can be found at:
> https://github.com/akgrant43/opensmalltalk-vm/blob/checkoutVMbyDate/scripts/checkoutVMbyDate
>
> It's a single file, so should be easy to copy and test.
>
> If you're happy with what's there, let me know and I'll create a PR.
>
> The help text is:
>
> checkoutVMbyDate [-dewh] -- Checkout the commit with the matching timestamp
>
> -d = Display the hash only, don't check out.
> -h = Display this help text and exit.
>
> Three forms are supported:
>
> 1. By date:
>
> checkoutVMbyDate DATE
>
> E.g.:
>
> checkoutVMbyDate "Tue May 30 19:41:27 2017 -0700"
>
> Note that this is doing a simple string match, so the date must be in the same
> format as git log.
>
>
> 2. By executable:
>
> checkoutVMbyDate -e PHARO_EXE
>
> E.g.:
>
> checkoutVMbyDate -e /path/to/pharo
>
> Run the supplied executable with the --version option and look for the date
> string.
>
>
> 3. By URL
>
> checkoutVMbyDate -w PHARO_URL
>
> E.g.:
>
> checkoutVMbyDate -w get.pharo.org
>
> This will execute "curl PHARO_URL | bash" in /tmp/checkoutVMbyDate/, run the
> downloaded exe and find the date string.
>
> --
>
> Cheers,
> Alistair
More information about the Vm-dev
mailing list