forked from roelandjansen/pcmos386v501
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAKEMOS.BAT: rename moxcptsk.com command.com [roelandjansen#95]
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
Showing
2 changed files
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |