BUG: Fix use of wrong path separator char in dosflash command

This commit is contained in:
Hamish Coleman 2016-05-24 11:30:08 +10:00
parent d9e5b5610e
commit eef19f110b
2 changed files with 7 additions and 2 deletions

View File

@ -142,8 +142,12 @@ $(DEPSDIR)/slice.insert.deps: Makefile
cp --reflink=auto $< $@
./hexpatch.pl $@ $@.d/*.patch
# using both __DIR and __FL2 is a hack to get around needing to quote the
# DOS path separator. It feels like there should be a beter way if I put
# my mind to it..
#
%.iso.bat: %.iso.orig %.iso.orig.desc autoexec.bat.template
sed -e "s%__FL2%`mdir -/ -b -i $<@@$(FAT_OFFSET) |grep FL2 |cut -d/ -f3-`%; s%__DESC%`cat $<.desc`%" autoexec.bat.template >$@
sed -e "s%__DIR%`mdir -/ -b -i $<@@$(FAT_OFFSET) |grep FL2 |cut -d/ -f3`%; s%__FL2%`mdir -/ -b -i $<@@$(FAT_OFFSET) |grep FL2 |cut -d/ -f4`%; s%__DESC%`cat $<.desc`%" autoexec.bat.template >$@
# helper to write the ISO onto a cdrw
%.iso.blank_burn: %.iso

View File

@ -17,5 +17,6 @@ echo.
echo This disk is prepared for __DESC
echo.
pause
dosflash /sd /ipf ec /file __FL2
cd __DIR
..\dosflash /sd /ipf ec /file __FL2