The project can be found here:
http://github.com/aaronfeng/weblocks-install/
After the generation, the project is completely self-contained, and
does not alter or depend on external environment (except for sbcl).
The script does various checks to make sure your environment is setup
correctly before the installation, so the script should be friendly to
new weblocks users. The only dependencies required by the script is
sbcl (thread enabled), curl & tar.
The script is capable of generating projects using weblocks stable
(0.8.3) or the latest development version (tip). Commands are listed
below:
# installs weblocks stable
./install-weblocks ~/path/to/your/project/foobar
# or
# installs weblocks tip
./install-weblocks ~/path/to/your/project/foobar tip
After a successful generation, the project can be executed by the command below:
cd ~/path/to/your/project/foobar && script/server
If the compilation is successful, one should see a banner showing the
port weblocks is running on.
Swank is also enabled by default. If people do not like this, I can
include an option to disable this.
Please give it a try. Any feedback is appreciated. I'm willing to
take the time to improve the script if people find it useful.
Thanks,
Aaron
> I created an idempotent installation script to generate a weblocks
> project with all the dependencies packaged into the project, including
> weblocks itself. The whole generation process takes less than 15
> seconds on my laptop.
>
> The project can be found here:
>
> http://github.com/aaronfeng/weblocks-install/
Nice. I was just about to start on something similar. Two points: it'd
be nice if you could include Elephant, and it would be much better if
the script downloaded all of the packages from the proper upstream
sources, rather than from your repository on github.
db48x
> But then compiling a second time worked!
I'm glad it worked the second time, but I wonder why it failed the first time.
Aaron
Thanks for the feedback.
> Two points: it'd
> be nice if you could include Elephant,
This can definitely be included.
> and it would be much better if
> the script downloaded all of the packages from the proper upstream
> sources, rather than from your repository on github.
I agree, however, I ran into problems with packaging when I tried to
pull everything from CLiki. In fact it was super painful for me to
upload all the files to github and figure out the dependencies. I did
it because of the following:
* No version number to identify the release from the package (ie,
some-lib-stable.tar.gz)
* No version number at all (asd file has no version info)
* Inconsistency on the package mechanism and the naming of the package
At the end of the day, there was no way to tell the compatibility
between libraries if the packages are not versioned.
Thanks,
Aaron
Nice. Well, the system you have does have the virtue of working.
db48x
I have added it to the homepage some time ago but forgot to pull
it.
> As far as libraries go, which version of cl-prevalence is in use? I
> think Leslie had made a fork of it which works better.
Yes (it's at Bitbucket), but it's still missing a patch critical to the
validity of object xrefs.
Is this the addition to which you refer?
"Installer script
Aaron Feng wrote a shell script that lets you start a new Weblocks project from
scratch; all you need is an installed SBCL.
Get it here: http://github.com/aaronfeng/weblocks-install/"
Seb
--
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap