mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-09 19:11:05 +00:00
BUG: Fix use of wrong path separator char in dosflash command
This commit is contained in:
parent
d9e5b5610e
commit
eef19f110b
6
Makefile
6
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user