mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use POSIX-compatible dd(1) instead of head -c.
This commit is contained in:
@@ -18,7 +18,7 @@ for i in *.asm; do
|
||||
bin=${i%.asm}.out.bin
|
||||
if [ -f $bin ]; then
|
||||
../../rgblink -o $gb $o > $after 2>&1
|
||||
head -c $(wc -c < $bin) $gb > $after 2>&1
|
||||
dd if=$gb count=1 bs=$(printf %s $(wc -c < $bin)) > $after 2>/dev/null
|
||||
hexdump -C $after > $before && mv $before $after
|
||||
hexdump -C $bin > $before
|
||||
diff -u $before $after
|
||||
|
||||
@@ -12,7 +12,7 @@ $RGBASM -o $otemp bank-numbers.asm
|
||||
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
||||
diff bank-numbers.out $outtemp
|
||||
rc=$(($? || $rc))
|
||||
head -c 20 $gbtemp > $otemp 2>&1
|
||||
dd if=$gbtemp count=1 bs=20 > $otemp 2>/dev/null
|
||||
diff bank-numbers.out.bin $otemp
|
||||
rc=$(($? || $rc))
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ RGBLINK=../../rgblink
|
||||
|
||||
$RGBASM -o $otemp bank-numbers.asm
|
||||
$RGBLINK -o $gbtemp $otemp > bank-numbers.out 2>&1
|
||||
head -c 20 $gbtemp > bank-numbers.out.bin 2>&1
|
||||
dd if=$gbtemp count=1 bs=20 > bank-numbers.out.bin 2>/dev/null
|
||||
|
||||
$RGBASM -o $otemp section-attributes.asm
|
||||
$RGBLINK -l section-attributes.link \
|
||||
|
||||
Reference in New Issue
Block a user