[Coco] nitros9 daily clean build script for Gene

Tormod Volden lists.tormod at gmail.com
Wed Oct 22 19:30:19 EDT 2014


On Thu, Oct 23, 2014 at 1:06 AM, Gene Heskett <gheskett at wdtv.com> wrote:
> On Wednesday 22 October 2014 16:37:09 Tormod Volden did opine
> And Gene did reply:
>> I suggested this so many times, but here it is on a silver plate, so
>> you have no escape :) Untested, so please tell if there is something
>> wrong, or if there is any reason you cannot use this.
>>
>> Tormod
>>
>>
>> #!/bin/sh
>> # NitrOS-9 daily clean build script
>> # expects an existing repo in a "nitros9" directory
>> set -e
>> cd nitros9
>> if ! hg incoming; then
>>     echo "No new changes to pull"
>>     exit 1
>> fi
>> hg pull
>> hg update
>> cd ..
> ========
>> BUILD_DIR=nitros9-$(date +%Y-%m-%d-%H-%M)
>> hg clone nitros9 $BUILD_DIR
>> cd $BUILD_DIR
>> make dsk dskcopy
> ========
>> cd ..
>>
>> #only for Gene:
>> chown -R gene:www-data $BUILD_DIR
>
> Whole script fails, no updates so it exits. doing those 4 lines by hand to

"Whole script fails" - well, this is by design, if there are no
updates it shouldn't waste anyone's time. You can comment out that
check the first time.

> make it anyway gets me this:
> gene at coyote:/opt/nitros9-2014-10-22-18-46$ sudo make dsk dskcopy

Nobody told you to use "sudo". This is Linux beginner fail number one,
padding on "sudo" whenever there is an issue. If you need sudo to
build nitros9 then your system is severely messed up. That's like
using an administrator account on Windows to read e-mail. Hey wait...
Just kidding :)

> **************************************************
> *                                                *
> *              THE NITROS-9 PROJECT              *
> *                                                *
> **************************************************
> make -C /lib && make -C /level1 && make -C /level2 && make -C /level3 &&
> make -C /3rdparty && :
> make[1]: Entering directory `/lib'
> make[1]: *** No targets specified and no makefile found.  Stop.
> make[1]: Leaving directory `/lib'
> make: *** [all] Error 2

This is because you have set NITROS9DIR to an empty value. You
shouldn't set it all. Use "unset NITROS9DIR" in your current shell, or
start a new fresh shell.

>
> I am going to comment the lwtools branch out of my script, which makes it
> much like yours, then try yours again, and see if I have any makefiles.

Please use my script, or follow the instructions. It is impossible to
help you if you insist on doing things your own way.

> This is frustrating at best.

Do not complicate things with build scripts if you cannot get it to
build by hand. The whole building from scratch is fairly simple. See
http://sourceforge.net/p/nitros9/wiki/Building_NitrOS9/#obtain-and-build-nitros-9

Once you have this under control, you can think about making your own
changes, using build scripts, and so on. One step at at time.

Regards,
Tormod


More information about the Coco mailing list