Last active
December 17, 2016 12:09
-
-
Save CraftedCart/b3805c77b51080b39ff2475e3aa6eb14 to your computer and use it in GitHub Desktop.
Creates XML data to put inside *.Civ5Pkg for Civ 5 modding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS=$'\n' | |
XML_FILES="$(find . -type f -exec basename {} \; | grep .xml)" | |
GD="<GameData>" | |
GDE="</GameData>" | |
TD="<TextData>" | |
TDE="</TextData>" | |
for f in $XML_FILES; do | |
ENTRY=" $GD$f$GDE\n $TD$f$TDE" | |
echo "$ENTRY" | |
done | |
unset IFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment