epetition_core - OpenSource release creation steps 0 - create a folder to work in [ # mkdir exports && cd exports ] 1 - export epetition_core from cvs HEAD [ # cvs export -r HEAD epetition_core ] 2 - export demo.epetition.public-i.tv from cvs HEAD [ # cvs export -r HEAD demo.epetition.public-i.tv ] 3 - rename demo site to epetition.mydomain.com [ # mv demo.epetition.public-i.tv epetition.mydomain.com ] 4 - add install file to export [ or INSTALL_v2] - from overlay or previous release 5 - delete files we dont want to redistribute [ # rm epetition_core/.project ] [ # rm epetition_core/DB/epetition_v2.mwb ] [ # rm epetition_core/DB/countries.sql ] [ # rm epetition_core/DB/national_id_db_changes.sql ] 6 - tidy up config files for public-i specific content [ # nano -w epetition_core/system/epetition/config/config.php ] ( replace "$config['global_email'] = 'no-reply@public-i.tv';" with "$config['global_email'] = 'no-reply@mydomain.com';" ) [ # nano -w epetition_core/system/epetition/config/database.php ] ( replace "$db['default']['username'] = 'epet_v2_user';" with "$db['default']['username'] = 'my_user';" ) ( replace "$db['default']['password'] = "....";" with "$db['default']['password'] = 'my_passwd';" ) [ # nano -w epetition_core/system/epetition/config/openidrpx.php ] ( replace "$config['openidrpx_apikey'] = '...';" with "$config['openidrpx_apikey'] = 'my_openidrpx_key';" ) [ # nano -w epetition_core/system/epetition/config/option.php ] ( replace "OPTION_GOOGLE_API_KEY...')," with "OPTION_GOOGLE_API_KEY => option_type(OPTION_GOOGLE_API_KEY, 693, 693, OPTION_STRING, 'my_google_api_key')," ) ( replace "OPTION_CTS_API_KEY...')," with "OPTION_CTS_API_KEY => option_type(OPTION_CTS_API_KEY, 701, 701, OPTION_STRING, 'my_cts_api_key', true)," ) ( replace "OPTION_RECAPTCHA_PUBLIC_API_KEY...')," with "OPTION_RECAPTCHA_PUBLIC_API_KEY => option_type(OPTION_RECAPTCHA_PUBLIC_API_KEY, 705, 705, OPTION_STRING, 'my_recaptcha_api_public_key', false)," ) ( replace "OPTION_RECAPTCHA_PRIVATE_API_KEY...')," with "OPTION_RECAPTCHA_PRIVATE_API_KEY => option_type(OPTION_RECAPTCHA_PRIVATE_API_KEY, 704, 704, OPTION_STRING, 'my_recaptcha_api_private_key', false)," ) ( replace "OPTION_CLUSTER_URL...')," with "OPTION_CLUSTER_URL => option_type(OPTION_CLUSTER_URL, 715, 715, OPTION_STRING, 'http://cluster.mydomain.com', false)" ) [ # nano -w epetition_core/system/epetition/config/recaptcha.php ] ( delete commented out public-i keys ) 7 - tidy up demo domain [ # rm epetition.mydomain.com/assets/* ] [ # rm epetition.mydomain.com/.project ] 8 - create project bundles (filenames based on dated release version) [ # tar -cvzf epetition_OpenSource_2010_02_21.tar.gz epetition_core epetition.mydomain.com INSTALL_v2 ] [ # zip -r epetition_OpenSource_2010_02_21.zip epetition_core epetition.mydomain.com INSTALL_v2 ] 9 - tag up cvs [ # cvs rtag OpenSource_2010_02_21 epetition_core ]