diff --git a/doc/create_sets_xml.sh b/doc/create_sets_xml.sh new file mode 100755 index 00000000..c6cb6f19 --- /dev/null +++ b/doc/create_sets_xml.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Print the header +echo '' +echo '' +echo 'http://www.wizards.com/global/images/magic/general/%1.jpg' +echo 'http://gatherer.wizards.com/Pages/Search/Default.aspx?output=spoiler&method=text&set=["!longname!"]' + +# Download the sets and print them in XML +lynx -dump -source http://magiccards.info/sitemap.html |grep Gatecrash|sed 's/
  • @\t@g'|sed 's@\n\t\t"toupper($1)"\n\t\t"$2"\n\t"}' + +# Print the footer +echo ''