[Coco] nitros9 daily clean build script for Gene

Gene Heskett gheskett at wdtv.com
Wed Oct 22 19:36:43 EDT 2014


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

Ok, a new clone of the srcfrg repo. and it all built insitu except the level3 stuff, because the level3/makefile is:
gene at coyote:/opt/nitros9/level3$ cat makefile

all:
info:
clean:
dsk:
dskcopy:
dskclean:

What I did yesterday was to cp the level2 makefile and adjust the level specs in it.

Thats this if you would commit it to the level3 root dir:

include $(NITROS9DIR)/rules.mak
LEVEL	= 3
dirs	= coco3 coco3_6309
ifdef PORTS
dirs	= $(PORTS)
endif

# Make all components
all:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*             NitrOS-9 Level $(LEVEL) Ports             *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"
	$(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) :

# Clean all components
clean:
	$(foreach dir, $(dirs), ($(CD) $(dir); make clean);)

# Make DSK images
dsk:
	$(foreach dir,$(dirs),$(MAKE) -C $(dir) dsk &&) :

# Copy DSK images
dskcopy:
	$(foreach dir,$(dirs),$(MAKE) -C $(dir) dskcopy &&) :

# Clean DSK images
dskclean:
	$(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);)

# Info
info:
	@$(foreach dir, $(dirs), $(MAKE) -C $(dir) info; $(ECHO);)
EOF=================

Which generates this for a make info in the level3 directory:

gene at coyote:/opt/nitros9/level3$ make info
make[1]: Entering directory `/opt/nitros9/level3/coco3'
*** NitrOS-9/6809 Level 3 for the Tandy Color Computer 3 ***
nos96809l3v030300coco3_dw.dsk
nos96809l3v030300coco3_40d_1.dsk
nos96809l3v030300coco3_40d_1_50hz.dsk
nos96809l3v030300coco3_40d_2.dsk
nos96809l3v030300coco3_80d.dsk
nos96809l3v030300coco3_80d_50hz.dsk
make[1]: Leaving directory `/opt/nitros9/level3/coco3'

make[1]: Entering directory `/opt/nitros9/level3/coco3_6309'
*** NitrOS-9/6309 Level 3 for the Tandy Color Computer 3 ***
nos96309l3v030300coco3_dw.dsk
nos96309l3v030300coco3_40d_1.dsk
nos96309l3v030300coco3_40d_1_50hz.dsk
nos96309l3v030300coco3_40d_2.dsk
nos96309l3v030300coco3_80d.dsk
nos96309l3v030300coco3_80d_50hz.dsk
make[1]: Leaving directory `/opt/nitros9/level3/coco3_6309'

Now to see if it will make, back later with the next patch(s)

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS


More information about the Coco mailing list