Fix scripts and tests
* Fix the reformat script to work with recent changes * Fix the convert-nei-dump script to remove leading and trailing '_' * Fix various broken tests
This commit is contained in:
@@ -38,7 +38,13 @@ echo "" >> $DATA_FILE
|
||||
mkdir -p $TARGET_DIR/images
|
||||
ls $SOURCE_DIR/itempanel_icons | while read FILE; do
|
||||
ITEM_NAME="$(echo $FILE | sed 's/.png//')"
|
||||
TARGET_FILE="$(echo $ITEM_NAME | sed 's/[^a-zA-Z0-9]/_/g' | sed 's/__*/_/g' | tr '[A-Z]' '[a-z]').png"
|
||||
TARGET_FILE="$(echo $ITEM_NAME \
|
||||
| sed 's/[^a-zA-Z0-9]/_/g' \
|
||||
| sed 's/__*/_/g' \
|
||||
| sed 's/^_//' \
|
||||
| sed 's/_$//' \
|
||||
| tr '[A-Z]' '[a-z]' \
|
||||
).png"
|
||||
cp "$SOURCE_DIR/itempanel_icons/$FILE" "$TARGET_DIR/images/$TARGET_FILE"
|
||||
echo "item: $ITEM_NAME" >> $DATA_FILE
|
||||
echo "" >> $DATA_FILE
|
||||
|
||||
Reference in New Issue
Block a user