Skip to content

Commit

Permalink
MAKEMOS.BAT: rename moxcptsk.com command.com [roelandjansen#95]
Browse files Browse the repository at this point in the history
As was pointed out, this is how command.com should be built.
Also update dosemu revision check, as --Fdrive_c appears recent.
  • Loading branch information
stsp committed May 5, 2020
1 parent bcb6767 commit 80205f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions SOURCES/src/MAKEMOS.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ REM =======================

rem cd mos5src
make -f makeutil.mak all
ren moxcptsk.com command.com
rem make -f maketerm.mak all
ren __*.* $$*.*
ren _*.sys $*.sys
Expand Down
10 changes: 2 additions & 8 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
#!/bin/sh -eu

REV="$(dosemu --version | grep Revision | cut -d " " -f 2)"
if [ -z "$REV" ] || [ "$REV" -lt 3684 ]; then
echo "At least dosemu2 revision 3684 is required (see dosemu --version)."
if [ -z "$REV" ] || [ "$REV" -lt 4347 ]; then
echo "At least dosemu2 revision 4347 is required (see dosemu --version)."
exit 1
fi

BOOTDIR="SOURCES/src/latest"

[ -f "$BOOTDIR"/'$$mos.sys' ] || (echo "Run ./build.sh first!" && exit 1)

if [ ! -f "$BOOTDIR"/COMMAND.COM ]; then
unzip SHIPMOS/SHIPMOS.ZIP COMMAND.COM -d "$BOOTDIR" || \
(echo "Unable to extract command.com, unzip not installed?" && \
exit 1)
fi

dosemu --Fdrive_c "$BOOTDIR"

0 comments on commit 80205f8

Please sign in to comment.