Skip to content

Commit

Permalink
Patches fixes for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
valerius2k committed Mar 25, 2024
1 parent 6f1cadd commit ce38e19
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 31 deletions.
2 changes: 1 addition & 1 deletion dosx/hdpmi/hdpmi.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ PORT_NAME = dos$(SEP)hdpmi
PORT_TYPE = git
PORT_URL = https://github.com/Baron-von-Riedesel/HX
PORT_REV = v2.20
#PORT_PATCHES = attrib.diff
PORT_PATCHES = #hdpmi.diff

!include $(%ROOT)tools/mk/port.mk
60 changes: 30 additions & 30 deletions dosx/hdpmi/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ PROJ = hdpmi16
TRGT = $(PROJ).exe
DESC = 286 MS-DOS Extender
srcfiles = &
$(p)HDPMI$(e) &
$(p)A20GATE$(e) &
$(p)CLIENTS$(e) &
$(p)EXCEPT$(e) &
$(p)HEAP$(e) &
$(p)HELPERS$(e) &
$(p)I2FHDPMI$(e) &
$(p)I31DEB$(e) &
$(p)I31DOS$(e) &
$(p)I31FPU$(e) &
$(p)I31INT$(e) &
$(p)I31MEM$(e) &
$(p)I31SEL$(e) &
$(p)I31SWT$(e) &
$(p)INIT$(e) &
$(p)INT13API$(e) &
$(p)INT21API$(e) &
$(p)INT2FAPI$(e) &
$(p)INT2XAPI$(e) &
$(p)INT31API$(e) &
$(p)INT33API$(e) &
$(p)INT41API$(e) &
$(p)INTXXAPI$(e) &
$(p)MOVEHIGH$(e) &
$(p)PAGEMGR$(e) &
$(p)PUTCHR$(e) &
$(p)PUTCHRR$(e) &
$(p)SWITCH$(e) &
$(p)VXD$(e)
$(p)hdpmi$(e) &
$(p)a20gate$(e) &
$(p)clients$(e) &
$(p)except$(e) &
$(p)heap$(e) &
$(p)helpers$(e) &
$(p)i2fhdpmi$(e) &
$(p)i31deb$(e) &
$(p)i31dos$(e) &
$(p)i31fpu$(e) &
$(p)i31int$(e) &
$(p)i31mem$(e) &
$(p)i31sel$(e) &
$(p)i31swt$(e) &
$(p)init$(e) &
$(p)int13api$(e) &
$(p)int21api$(e) &
$(p)int2fapi$(e) &
$(p)int2xapi$(e) &
$(p)int31api$(e) &
$(p)int33api$(e) &
$(p)int41api$(e) &
$(p)intxxapi$(e) &
$(p)movehigh$(e) &
$(p)pagemgr$(e) &
$(p)putchr$(e) &
$(p)putchrr$(e) &
$(p)switch$(e) &
$(p)vxd$(e)

JWASM = 1
DEST = os2$(SEP)mdos$(SEP)winos2$(SEP)system
Expand All @@ -47,7 +47,7 @@ STACKSIZE = 0

ADD_ASMOPT = -D?32BIT=0 -D?LFNSUPPORT=0 -D?HSINEXTMEM=0 -c -Cp -Sg -I=$(PORT_BASE)Include

.inc: $(PORT_BASE)Include;$(PORT_BASE)Src$(SEP)HDPMI
.inc: $(PORT_BASE)Include$(PS)$(PORT_BASE)Src$(SEP)HDPMI

.asm: $(PORT_BASE)Src$(SEP)HDPMI

123 changes: 123 additions & 0 deletions dosx/hdpmi/patches/fixcase.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/* rexx */

parse arg dir

call directory dir

call directory 'Include'

call rename 'ASCII.INC', 'ascii.inc'
call rename 'DDRAW.INC', 'ddraw.inc'
call rename 'DINPUT.INC', 'dinput.inc'
call rename 'DPMI.INC', 'dpmi.inc'
call rename 'DSOUND.INC', 'dsound.inc'
call rename 'EXCPT.INC', 'excpt.inc'
call rename 'FAT32.INC', 'fat32.inc'
call rename 'FIXUPS.INC', 'fixups.inc'
call rename 'FUNCTION.INC', 'function.inc'
call rename 'HEAP32.INC', 'heap32.inc'
call rename 'HXVDD.INC', 'hxvdd.inc'
call rename 'INITPM.INC', 'initpm.inc'
call rename 'INITPM16.INC', 'initpm16.inc'
call rename 'ISVBOP.INC', 'isvbop.inc'
call rename 'KEYBOARD.INC', 'keyboard.inc'
call rename 'MACROS.INC', 'macros.inc'
call rename 'MMSYSTEM.INC', 'mmsystem.inc'
call rename 'NT_VDD.INC', 'nt_vdd.inc'
call rename 'OBJBASE.INC', 'objbase.inc'
call rename 'OLEAUTO.INC', 'oleauto.inc'
call rename 'SB16.INC', 'sb16.inc'
call rename 'SHELLAPI.INC', 'shellapi.inc'
call rename 'STDDEFS.INC', 'stddefs.inc'
call rename 'TLHELP32.INC', 'tlhelp32.inc'
call rename 'VDDSVC.INC', 'vddsvc.inc'
call rename 'VESA32.H', 'vesa32.h'
call rename 'VESA32.INC', 'vesa32.inc'
call rename 'VK.INC', 'vk.inc'
call rename 'VWIN32.INC', 'vwin32.inc'
call rename 'WINBASE.INC', 'winbase.inc'
call rename 'WINCON.INC', 'wincon.inc'
call rename 'WINDEF.INC', 'windef.inc'
call rename 'WINERROR.INC', 'winerror.inc'
call rename 'WINGDI.INC', 'wingdi.inc'
call rename 'WINIOCTL.INC', 'winioctl.inc'
call rename 'WINNLS.INC', 'winnls.inc'
call rename 'WINNT.INC', 'winnt.inc'
call rename 'WINREG.INC', 'winreg.inc'
call rename 'WINSOCK.INC', 'winsock.inc'
call rename 'WINUSER.INC', 'winuser.inc'
call rename 'WNASPI32.INC', 'wnaspi32.inc'
call rename 'WTYPES.INC', 'wtypes.inc'

call directory '..'
call directory 'Src'

call directory 'HDPMI'

call rename 'A20GATE.ASM', 'a20gate.asm'
call rename 'CLIENTS.ASM', 'clients.asm'
call rename 'DEBUGSYS.INC', 'debugsys.inc'
call rename 'EXCEPT.ASM', 'except.asm'
call rename 'EXTERNAL.INC', 'external.inc'
call rename 'HDPMI.ASM', 'hdpmi.asm'
call rename 'HDPMI.INC', 'hdpmi.inc'
call rename 'HDPMI.TXT', 'hdpmi.txt'
call rename 'HDPMIAPI.TXT', 'hdpmiapi.txt'
call rename 'HDPMIHIS.TXT', 'hdpmihis.txt'
call rename 'HDPMIST.ASM', 'hdpmist.asm'
call rename 'HEAP.ASM', 'heap.asm'
call rename 'HELPERS.ASM', 'helpers.asm'
call rename 'I2FHDPMI.ASM', 'i2fhdpmi.asm'
call rename 'I31DEB.ASM', 'i31deb.asm'
call rename 'I31DOS.ASM', 'i31dos.asm'
call rename 'I31FPU.ASM', 'i31fpu.asm'
call rename 'I31INT.ASM', 'i31int.asm'
call rename 'I31MEM.ASM', 'i31mem.asm'
call rename 'I31SEL.ASM', 'i31sel.asm'
call rename 'I31SWT.ASM', 'i31swt.asm'
call rename 'INIT.ASM', 'init.asm'
call rename 'INT13API.ASM', 'int13api.asm'
call rename 'INT21API.ASM', 'int21api.asm'
call rename 'INT2FAPI.ASM', 'int2fapi.asm'
call rename 'INT2XAPI.ASM', 'int2xapi.asm'
call rename 'INT31API.ASM', 'int31api.asm'
call rename 'INT31API.INC', 'int31api.inc'
call rename 'INT33API.ASM', 'int33api.asm'
call rename 'INT41API.ASM', 'int41api.asm'
call rename 'INTXXAPI.ASM', 'intxxapi.asm'
call rename 'MODULES.INC', 'modules.inc'
call rename 'MOVEHIGH.ASM', 'movehigh.asm'
call rename 'PAGEMGR.ASM', 'pagemgr.asm'
call rename 'PAGEMGR.INC', 'pagemgr.inc'
call rename 'PUTCHR.ASM', 'putchr.asm'
call rename 'PUTCHRR.ASM', 'putchrr.asm'
call rename 'SWITCH.ASM', 'switch.asm'
call rename 'VERSION.INC', 'version.inc'
call rename 'VXD.ASM', 'vxd.asm'

call directory '..'
call directory '..'


exit 0
/* ------------------------------------------ */
rename: procedure
src = arg(1)
dst = arg(2)

parse source os .

if os = 'OS/2' | os = 'DOS' | os = 'WINDOWS' |,
os = 'WINNT' | os = 'WIN32' | os = 'WIN64'
then MV = 'move'
else MV = 'mv'

ret = stream(src, 'c', 'query exists')

if ret \= '' then do
MV' 'src' 'dst'1'
MV' 'dst'1 'dst
end

return
/* ------------------------------------------ */

0 comments on commit ce38e19

Please sign in to comment.