#!/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 # capabilities script has no ability to handle modlist or mpdb capabilities # Check also those CAP_MODLIST_OLD="+Freeciv-modlist-Devel-3.1-2019.Jul.15" CAP_MODLIST_NEW="+Freeciv-3.1-modlist" CAP_MODPACK_OLD="+Freeciv-mpdl-Devel-3.1-2019.Jul.15" CAP_MODPACK_NEW="+Freeciv-3.1-mpdl" sed -e "s/$CAP_MODLIST_OLD/$CAP_MODLIST_NEW/" \ -e "s/$CAP_MODPACK_OLD/$CAP_MODPACK_NEW/" tools/fcmp/download.h \ > dl.h.new && mv dl.h.new tools/fcmp/download.h sed -e "s/$CAP_MODLIST_OLD/$CAP_MODLIST_NEW/" \ -e "s/$CAP_MODPACK_OLD/$CAP_MODPACK_NEW/" doc/README.modpack_installer \ > rmi.h.new && mv rmi.h.new doc/README.modpack_installer