new build script

45 views
Skip to first unread message

SASANO Takayoshi

unread,
Feb 19, 2025, 7:29:39 AMFeb 19
to mik...@googlegroups.com
Hello,

mformat (of mtools) can build MS-DOS formatted floppy disk image with
your favorite bootloader.

I rewrite build script with mformat and named build.sh. It can replace
build-linux.sh and build-openbsd.sh and no root privilege.

I attach the script.

--
SASANO Takayoshi (JG1UAA) <u...@mx5.nisiq.net>

build.sh

Joshua Beck

unread,
Feb 20, 2025, 4:27:59 AMFeb 20
to MikeOS
Looks good.

I'll try this out tomorrow.

I'm seeing a lot of copying of specific names...

Perhaps you could simply do a blanket copy of all the miscellany in programs folder?
e.g. everything that doesn't have the BIN, BAS, INC, or ASM extension?

(If we really can just use mtools commands for all of this it may be possible to do a Makefile.)

SASANO Takayoshi

unread,
Apr 27, 2025, 6:54:36 AMApr 27
to Joshua Beck, MikeOS
Hello, sorry for late reply.

> Perhaps you could simply do a blanket copy of all the miscellany in
> programs folder?
> e.g. everything that doesn't have the BIN, BAS, INC, or ASM extension?

Here is an idea (diff for previous build.sh).

uaa@framboise:~/z/mikeOS$ diff build.sh build.sh.new
48c48
< mcopy -o -i $IMAGE programs/*.bin programs/*.bas programs/sample.pcx ::/
---
> mcopy -o -i $IMAGE programs/*.bin programs/*.bas `ls programs/* | egrep -v -e \\.bin$ -e \\.bas$ -e \\.asm$ -e \\.inc$` ::/
uaa@framboise:~/z/mikeOS$

Looks working with sh, ksh, bash and dash on OpenBSD.


Best regards,

Joshua Beck

unread,
May 22, 2025, 5:20:16 AMMay 22
to MikeOS
Yeah, that sounds better.
Mostly there's BIN and BAS but there's a few stragglers.
Reply all
Reply to author
Forward
0 new messages