[Vm-dev] Improving buildsqueaktrunkimage.sh in Cog/image SVN tree

gettimothy gettimothy at zoho.com
Fri Apr 25 20:07:01 UTC 2014

Hi Eliot,

That is good news, 

Thanks, found this in VMMaker class > intiialize

#('../platforms' 'oscogvm/platforms' 'Cog/platforms')
 with: #('../' 'oscogvm' 'Cog')
 do: [:dir :path|
 (FileDirectory default directoryExists: dir) ifTrue:
 [DirNames at: #sourceTree put: path.

So there it is!

There are a couple of other things I see.

1. In the buildsqueaktrunkimage.sh script, I had to change the line

# VM="$APP/Contents/$OS-$CPU/bin/squeak";;



 for the thing to self-launch.

2. Once the image runs, the 
Compiler evaluate: (FileStream oldFileNamed: 'BuildSqueak45Image.st') contentsOfEntireFile 
does not run to completion (I can debug this if needed).

3. Is the community happy with the way this script runs? or are there improvements folks would like? I can think of several things I would like to do, for example
   ..generate a startup script once the image is configured
   ..provide options for version stable, version/trunk,  latest stable
   ..option to use an existing VM instead of downloading the All-in-one

4. I like the fact that "its all there" and I don't have to move the .image and .changes file to  a place I can run them. The pharo process does not provide that.

Thanks for your time.


---- On Fri, 25 Apr 2014 12:39:24 -0700 Eliot Miranda<eliot.miranda at gmail.com> wrote ---- 

 Hi Tty,

On Fri, Apr 25, 2014 at 10:31 AM, gettimothy <gettimothy at zoho.com> wrote:
 Hi all.

I thought I would get my feet wet on the Squeak CMake stuff by mimicing the script the pharo team has for automatically downloading and configuring an image with the VMaker tools.
 Well, it turns out that one already exists and I just did not know about it. (:

I would like to improve the process such that running the script sets up 'everything' so that when booting the image one can run VMaker out-of-the-box without setting up the oscogvm subdirectories etc.

I'm not sure I understand.  If one checks-out all of http://www.squeakvm.org/svn/squeak/branches/Cog, cd's to http://www.squeakvm.org/svn/squeak/branches/Cog/image, runs buildsqueaktrunkimage.sh, and starts up the CogVMMaker image, then the paths /are/ already set up.  All you need to do is run one of the configurations and it'll default to looking for platformes in ../platforms and outputting generated sources to one of the source directories in .., e.g. ../src
 Any objections?



P.S. my workplan for the CMake project is:

1. get the script going.                         <-- I am here
2. add support for the existing Standard Interpreter.
3. Build Tim R.'s requirements
4. CMake-ify the remaining VM's/platforms.



When the Solaris vm is done, If I could get an url to the relevant files, I would like to add that to the script as well. I have an OpenIndiana partition I can test that on.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140425/2f3def2f/attachment.htm

More information about the Vm-dev mailing list