Skip to content

Commit

Permalink
Revert "chore: bump version number on md5sum change (#153)" (#156)
Browse files Browse the repository at this point in the history
This reverts commit d288c9d.

We've agreed that this is not the best solution to the problem. Let's
not do any new versioning for now, just revert the change.
  • Loading branch information
kristofbolyai authored Aug 23, 2024
1 parent 54e754c commit e6d0493
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 91 deletions.
8 changes: 1 addition & 7 deletions Generators/extract_caves.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ MD5=$(md5sum $OUTPUT_DIR/caves.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticCaveInfo
jq '. = [.[] | if (.id == "dataStaticCaveInfo") then (.md5 = "'$MD5'") else . end]' < $BASE_DIR/Data-Storage/urls.json > $BASE_DIR/Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < $BASE_DIR/Data-Storage/urls.json.tmp > $BASE_DIR/Data-Storage/urls.json
fi

rm $BASE_DIR/Data-Storage/urls.json.tmp
mv $BASE_DIR/Data-Storage/urls.json.tmp $BASE_DIR/Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/extract_combat_locations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,4 @@ MD5=$(md5sum $OUTPUT_DIR/combat_mapfeatures.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticCombatMapFeatures
jq '. = [.[] | if (.id == "dataStaticCombatMapFeatures") then (.md5 = "'$MD5'") else . end]' < $BASE_DIR/Data-Storage/urls.json > $BASE_DIR/Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < $BASE_DIR/Data-Storage/urls.json.tmp > $BASE_DIR/Data-Storage/urls.json
fi

rm $BASE_DIR/Data-Storage/urls.json.tmp
mv $BASE_DIR/Data-Storage/urls.json.tmp $BASE_DIR/Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/extract_labels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ MD5=$(md5sum $TARGET_MAPFEATURES | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticPlaceMapFeatures
jq '. = [.[] | if (.id == "dataStaticPlaceMapFeatures") then (.md5 = "'$MD5'") else . end]' < $MYDIR/../Data-Storage/urls.json > $MYDIR/../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < $BASE_DIR/Data-Storage/urls.json.tmp > $BASE_DIR/Data-Storage/urls.json
fi

rm $BASE_DIR/Data-Storage/urls.json.tmp
mv $MYDIR/../Data-Storage/urls.json.tmp $MYDIR/../Data-Storage/urls.json

echo Finished updating "$TARGET_MAPFEATURES"
8 changes: 1 addition & 7 deletions Generators/extract_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,4 @@ MD5=$(md5sum $TARGET_DIR/$TARGET_MAPFEATURES | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticServicesMapFeatures
jq '. = [.[] | if (.id == "dataStaticServicesMapFeatures") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/merge_abilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,4 @@ MD5=$(md5sum "$COMBINED_JSON" | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticAbilities
jq --arg md5 "$MD5" '. = [.[] | if (.id == "dataStaticAbilities") then .md5 = $md5 else . end]' < "$BASE_DIR"/Data-Storage/urls.json > "$BASE_DIR"/Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < $BASE_DIR/Data-Storage/urls.json.tmp > $BASE_DIR/Data-Storage/urls.json
fi

rm $BASE_DIR/Data-Storage/urls.json.tmp
mv "$BASE_DIR"/Data-Storage/urls.json.tmp "$BASE_DIR"/Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_charm_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/charms.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticCharms
jq '. = [.[] | if (.id == "dataStaticCharms") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_gear_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/gear.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticGear
jq '. = [.[] | if (.id == "dataStaticGear") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_identification_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,4 @@ MD5=$(md5sum $TARGET_DIR/id_keys.json | cut -d' ' -f1)

# Update ulrs.json with the new md5sum for dataStaticIdentificationKeys
jq '. = [.[] | if (.id == "dataStaticIdentificationKeys") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_ingredient_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/advanced_ingredients.json | cut -d' ' -f1)

# Update ulrs.json with the new md5sum for dataStaticIngredientsAdvanced
jq '. = [.[] | if (.id == "dataStaticIngredientsAdvanced") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_maps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@ MD5=$(md5sum $JSON_METADATA_FILE | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticMaps
jq '. = [.[] | if (.id == "dataStaticMaps") then (.md5 = "'$MD5'") else . end]' < $WYNNDATA_DIR/Data-Storage/urls.json > $WYNNDATA_DIR/Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < $WYNNDATA_DIR/Data-Storage/urls.json.tmp > $WYNNDATA_DIR/Data-Storage/urls.json
fi

rm $WYNNDATA_DIR/Data-Storage/urls.json.tmp
mv $WYNNDATA_DIR/Data-Storage/urls.json.tmp $WYNNDATA_DIR/Data-Storage/urls.json

rm -rf $WYNNDATA_DIR/tmp
8 changes: 1 addition & 7 deletions Generators/update_material_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/materials.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticMaterials
jq '. = [.[] | if (.id == "dataStaticMaterials") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_tome_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/tomes.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticTomes
jq '. = [.[] | if (.id == "dataStaticTomes") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json
8 changes: 1 addition & 7 deletions Generators/update_tool_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ MD5=$(md5sum $TARGET_DIR/tools.json | cut -d' ' -f1)

# Update urls.json with the new md5sum for dataStaticTools
jq '. = [.[] | if (.id == "dataStaticTools") then (.md5 = "'$MD5'") else . end]' < ../Data-Storage/urls.json > ../Data-Storage/urls.json.tmp

# If the temp file is different from the original, bump the version number
if ! cmp -s ../Data-Storage/urls.json ../Data-Storage/urls.json.tmp; then
jq 'map(if has("version") then .version += 1 else . end)' < ../Data-Storage/urls.json.tmp > ../Data-Storage/urls.json
fi

rm ../Data-Storage/urls.json.tmp
mv ../Data-Storage/urls.json.tmp ../Data-Storage/urls.json

0 comments on commit e6d0493

Please sign in to comment.