[M3devel] Release notes comments
Jay K
jay.krell at cornell.edu
Sat Jul 18 14:12:48 CEST 2009
"usable source" as in editable and then rebuildable?
Ok, that I see.
> No, only partial sources (historically the IFs, in CM3 modules, too --
I didn't realize the history but I did notice the option and considered
it to shrink the distributions, but the source is useful for debugging.
> but no makefiles for example).
To serve as examples and to make it buildable? Ok.
Then I like it. :)
Like, it is gentler than having newbies use cvs, and
gets the versions that match their binaries.
Change the release notes?
Well, er, um, I guess the "ws" form on Windows might be nice too.
You can say this:
install.cmd:
SetLocal
set root=%~dp0
set pkgs=
set pkgs=%pkgs% m3-sys/cm3
set pkgs=%pkgs% m3-sys/m3quake
set pkgs=%pkgs% m3-libs/m3core
etc.
for %%a in (%pkgs%) do call :F1 %%a || exit /b 1
goto :eof
:F1
set b=%1
rem replace forward slashes with backward slashes
set b=%b:/=\%
cd %root%\%b% || exit /b 1
cm3 -ship || exit /b 1
goto :eof
There is an implied label :eof at the end of files.
"goto :eof" is how you "return".
You can also create
pkgs.txt:
m3-sys/cm3
m3-sys/m3quake
etc.
install.cmd
SetLocal
set root=%~dp0
for /f %%a in (%root%\pkgs.txt) do call :F1 %%a || exit /b 1
goto :eof
:F1
set b=%1
rem replace forward slashes with backward slashes
set b=%b:/=\%
cd %root%\%b% || exit /b 1
cm3 -ship || exit /b 1
goto :eof
I guess ideally pkgs.txt is identical files across all platforms, though
maybe alter the newlines, and then you write install.sh and install.cmd
that are constant and look for pkgs.txt "next to" them?
This "advanced" sort of cmd won't work on Win9x but it should work
pretty far back on NT like to 4.0 or maybe 3.51.
For Win9x compat, and actual even for sanity, you'd might want to consider
install.js or install.vbs. .js is a pretty ok language and .cmd is awful after
a few lines.
I guess I'll do this -- install.cmd + pkgs.txt.
- Jay
> Date: Sat, 18 Jul 2009 13:56:25 +0200
> From: wagner at elegosoft.com
> To: jay.krell at cornell.edu
> CC: m3devel at elegosoft.com
> Subject: RE: [M3devel] Release notes comments
>
> Quoting Jay K <jay.krell at cornell.edu>:
>
> >> > 4. I don't understand the "-bin-ws-" concept of "precompiled user
> >> > workspace" and how it would be useful. Please elaborate.
> >>
> >> Copied from a mail I sent to Jay some weeks ago:
> >
> > I actually still don't understand that.
> Strange.
>
> > Archiving up the installed form includes source.
> No, only partial sources (historically the IFs, in CM3 modules, too --
> but no makefiles for example).
>
> > What is the value of doing the ship/directory reorganization upon install?
> Easiest way to combine complete _usable_ source and binary products.
>
> > However, it is kind of a step toward a distribution that includes assembly
> > for everything and then assemble, c compile, link, and ship on the target.
> > (You might even use autoconf/libtool, though their powers will be severely
> > constrained by the presence of assembly.)
> > And such a distribution is easily cross built for all targets in one
> > fell automated
> > swoop on one host, good, valuable that way.
> >
> >> Yes, I haven't spent much thought on Windows until now. I hoped that
> >> you or Jay will do that. Of course I've also overseen the install.cmd
> >> scripts for Windows :-/ Should we use cmd or bat? Could somebody
> >> quickly provide the equivalent of this loop, so that I can
> >> automate it?
>
> > There are recent builds on
> > http://modula3.elegosoft.com/cm3/uploaded-archives/index.html.
> >
> > http://modula3.elegosoft.com/cm3/uploaded-archives/cm3-min-NT386-d5.8.1.zip
> > http://modula3.elegosoft.com/cm3/uploaded-archives/cm3-min-NT386-d5.8.1.msi
> > http://modula3.elegosoft.com/cm3/uploaded-archives/cm3-std-NT386-d5.8.1.msi
> > http://modula3.elegosoft.com/cm3/uploaded-archives/cm3-std-NT386-d5.8.1.zip
> >
> > as well as:
> > http://modula3.elegosoft.com/cm3/uploaded-archives/cm3-min-AMD64_LINUX-d5.8.1.deb
> [...]
> >
> > sorry..
>
> That's not what we're talking about. We're talking about installation
> archives for Windows for RC2 as they are described in the release
> notes. There are none.
>
> I can build them myself, but then it will take another couple of weeks.
> No hurry needed though, as we haven't fixed RC2 yet.
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090718/cc7b2499/attachment-0002.html>
More information about the M3devel
mailing list