Skip to content

Commit eaf4b64

Browse files
committed
weird issue with the version of expr and the match command vs colon
1 parent 6551b0c commit eaf4b64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
## Creating unit icons
1010

11-
1. Extract btn-unit* (and all files from special cases below) from base.MPQ and throw them in units/dds/
12-
2. `cd units && bash gen.sh <size>`
11+
1. Extract btn-unit* (and all files from special cases below) from the appropriate MPQ file and throw them in units/dds/
12+
The MPQ file will be Starcraft II/Mods/Liberty.SC2Mod/Base.SC2Assets for WoL units.
13+
2. `cd units && bash gen.sh <size>` for <size> in 32, 48, 76
1314
3. profit.
1415

1516
### Special cases:

units/gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for k in dds/*dds; do
1414
filename=$(basename "$k")
1515
extension="${filename##*.}"
1616
filename="${filename%.*}"
17-
m=`expr match "$filename" '\(btn-[a-zA-Z]*-[a-zA-Z]*-\)'`
17+
m=`expr "$filename" : '\(btn-[a-zA-Z]*-[a-zA-Z]*-\)'`
1818
unit="${filename//$m/}"
1919

2020
echo "$k -> icons/$w/$unit.png ($w x $h)"

0 commit comments

Comments
 (0)