#!/bin/bash # Capability strings to set at d3f time. # freeciv-3.1 still uses 2.6 compatible musicsets ./scripts/capabilities -c "tilespec" -s "+Freeciv-3.1-tilespec" ./scripts/capabilities -c "soundspec" -s "+Freeciv-3.1-soundset" #./scripts/capabilities -c "musicspec" -s "+Freeciv-2.6-musicset" ./scripts/capabilities -c "spec" -s "+Freeciv-3.1-spec" ./scripts/capabilities -c "ruleset" -s "+Freeciv-3.1-ruleset" # capabilities script has no ability to handle sdl2-client themes. # Check also those. ( .themespec & .tspec ) # For freeciv-3.1 the .tspec capability: "+Freeciv-3.1-sdl2-spec" # Freeciv-3.1 still uses 2.6 compatible .themespec find data -name "*.tspec" | (while read FILE; do sed 's/+Freeciv-sdl2-spec-Devel-2021-Jan-16/+Freeciv-3.1-sdl2-spec/' $FILE > $FILE.new && mv $FILE.new $FILE ; done ) sed 's/+Freeciv-sdl2-spec-Devel-2021-Jan-16/+Freeciv-3.1-sdl2-spec/' client/gui-sdl2/themespec.c > ts.c.new && mv ts.c.new client/gui-sdl2/themespec.c