Build scripts for football.db, worldcup.db, bundesliga.db, etc.
Use rake -T
to list all available tasks. Example:
$ rake -T
will print something like:
rake about # print versions of gems
rake book # build book (draft version) - The Free Football World Almanac
rake build # build football.db from scratch (default)
rake check # check repo paths
rake publish # build book (release version) - The Free Football World Almanac
rake pull # pull (auto-update) football.db from upstream sources
rake stats # print stats for football.db tables/records
rake update # update football.db
To get started use the following folder structure and clone some datasets with git. Example:
openmundi/ # -> create folder (e.g. mkdir openmundi)
world.db # -> git clone (see github.com/openmundi)
openfootball/ # -> create folder
build # -> git clone
national-teams # ..
world-cup # ..
Start your build (e.g. rake build
) inside the openfootball/build
folder.
Note: You can see (and change) all folder references in the settings.rb
script.
Build the database for the World Cup in Brazil 2014 (from scratch):
rake build DATA=worldcup2014
Build the database for all the World Cups:
rake build DATA=worldcup
Build the database for the European Champions League 2013/14:
rake build DATA=cl201314
Update the database for the European Champions League 2013/14 (after updating your data sets from git):
rake update DATA=cl201314
And so on and so forth.
The build scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.
Send them along to the Open Sports & Friends Forum/Mailing List. Thanks!