mirror of https://github.com/pret/pokecrystal.git
Merge pull request #516 from Ben10do/remove-gnu-sed-extensions
Don’t use GNU extensions when calling sed
This commit is contained in:
commit
06e169d01c
|
@ -1,10 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sed $1 \
|
TEMP_FILE=$(mktemp)
|
||||||
|
sed \
|
||||||
-e "s/^..:[0-3]/0_ROM0@&/g" \
|
-e "s/^..:[0-3]/0_ROM0@&/g" \
|
||||||
-e "s/^..:[4-7]/1_ROMX@&/g" \
|
-e "s/^..:[4-7]/1_ROMX@&/g" \
|
||||||
-e "s/^..:[8-9]/2_VRAM@&/g" \
|
-e "s/^..:[8-9]/2_VRAM@&/g" \
|
||||||
-e "s/^..:[A-B]/3_SRAM@&/g" \
|
-e "s/^..:[A-B]/3_SRAM@&/g" \
|
||||||
-e "s/^00:[C-D]/4_WRAM0@&/g" \
|
-e "s/^00:[C-D]/4_WRAM0@&/g" \
|
||||||
-e "s/^..:[D-D]/5_WRAMX@&/g" \
|
-e "s/^..:[D-D]/5_WRAMX@&/g" \
|
||||||
| sort -o $1
|
$1 \
|
||||||
sed -i $1 -e "s/^\w*@//g"
|
| sort \
|
||||||
|
| sed -e "s/^.*@//g" > $TEMP_FILE
|
||||||
|
mv $TEMP_FILE $1
|
||||||
|
|
Loading…
Reference in New Issue