[Vm-dev] [Pharo-dev] Stable Pharo VM for Linux?
akgrant0710 at gmail.com
Sun Jul 2 15:42:22 UTC 2017
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.
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:
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 "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
checkoutVMbyDate -e /path/to/pharo
Run the supplied executable with the --version option and look for the date
3. By URL
checkoutVMbyDate -w PHARO_URL
checkoutVMbyDate -w get.pharo.org
This will execute "curl PHARO_URL | bash" in /tmp/checkoutVMbyDate/, run the
downloaded exe and find the date string.
More information about the Vm-dev