From d1d23c55bc1cfcb1746a6bb55168aa0efd7a8018 Mon Sep 17 00:00:00 2001 From: jonpas Date: Fri, 19 Aug 2016 15:58:39 +0200 Subject: [PATCH] Streamline dependencies extraction tool (#4268) * Streamline dependencies extraction tool for new wiki location, Update dependencies list * Use LF strictly --- docs/_includes/dependencies_list.md | 121 +++++++++++++++++++++++++++- tools/extract_dependencies.py | 26 +++--- 2 files changed, 132 insertions(+), 15 deletions(-) diff --git a/docs/_includes/dependencies_list.md b/docs/_includes/dependencies_list.md index 3916788d13..4c164fff49 100644 --- a/docs/_includes/dependencies_list.md +++ b/docs/_includes/dependencies_list.md @@ -1,297 +1,412 @@ {% if include.component == "advanced_ballistics" %} `ace_ballistics`, `ace_weather` {% endif %} + {% if include.component == "ai" %} `ace_common` {% endif %} + {% if include.component == "aircraft" %} `ace_common` {% endif %} + {% if include.component == "apl" %} `ace_main` {% endif %} + {% if include.component == "atragmx" %} `ACE_common`, `ACE_weather` {% endif %} + {% if include.component == "attach" %} `ace_interaction` {% endif %} + {% if include.component == "backpacks" %} `ace_common` {% endif %} + {% if include.component == "ballistics" %} `ace_common` {% endif %} + {% if include.component == "captives" %} `ACE_Interaction` {% endif %} + {% if include.component == "cargo" %} `ace_interaction` {% endif %} + {% if include.component == "common" %} `ace_main`, `ace_modules` {% endif %} + {% if include.component == "concertina_wire" %} `ace_apl`, `ace_interaction` {% endif %} + +{% if include.component == "cookoff" %} +`ace_common` +{% endif %} + {% if include.component == "dagr" %} `ace_weather` {% endif %} + {% if include.component == "disarming" %} `ACE_Interaction` {% endif %} + {% if include.component == "disposable" %} `ace_common` {% endif %} + +{% if include.component == "dogtags" %} +`ace_common` +{% endif %} + {% if include.component == "dragging" %} `ace_interaction` {% endif %} + {% if include.component == "explosives" %} `ace_interaction` {% endif %} + {% if include.component == "fastroping" %} `ace_interaction` {% endif %} + {% if include.component == "fcs" %} `ace_interaction` {% endif %} + {% if include.component == "finger" %} `ace_common` {% endif %} + {% if include.component == "flashlights" %} `ace_interaction` {% endif %} + {% if include.component == "flashsuppressors" %} `ace_common` {% endif %} + {% if include.component == "fonts" %} `ace_main` {% endif %} + {% if include.component == "frag" %} `ace_common` {% endif %} + {% if include.component == "gestures" %} `ace_interact_menu` {% endif %} + {% if include.component == "gforces" %} `ace_common` {% endif %} + {% if include.component == "goggles" %} `ace_common` {% endif %} + {% if include.component == "grenades" %} `ace_common` {% endif %} + +{% if include.component == "gunbag" %} +`ace_interaction`, `ace_movement` +{% endif %} + {% if include.component == "hearing" %} `ace_interaction`, `A3_Characters_F`, `A3_Characters_F_Kart` {% endif %} + {% if include.component == "hitreactions" %} `ace_common` {% endif %} + {% if include.component == "huntir" %} `ace_common` {% endif %} + {% if include.component == "interaction" %} `ace_interact_menu` {% endif %} + {% if include.component == "interact_menu" %} `ace_common` {% endif %} + {% if include.component == "inventory" %} `ace_common` {% endif %} + {% if include.component == "javelin" %} `ace_main`, `ace_common`, `ace_missileguidance` {% endif %} + {% if include.component == "kestrel4500" %} `ACE_common`, `ACE_weather` {% endif %} + {% if include.component == "laser" %} `ace_common` {% endif %} + {% if include.component == "laserpointer" %} `ace_common` {% endif %} + {% if include.component == "laser_selfdesignate" %} `ace_laser` {% endif %} + {% if include.component == "logistics_uavbattery" %} `ace_interaction` {% endif %} + {% if include.component == "logistics_wirecutter" %} `ace_interaction` {% endif %} + {% if include.component == "magazinerepack" %} `ace_interaction` {% endif %} -{% if include.component == "main" %} -`3den`, `a3_air_f`, `a3_air_f_beta`, `a3_air_f_beta_heli_attack_01`, `a3_air_f_beta_heli_attack_02`, `a3_air_f_beta_heli_transport_01`, `a3_air_f_beta_heli_transport_02`, `a3_air_f_beta_parachute_01`, `a3_air_f_beta_parachute_02`, `a3_air_f_epb_heli_light_03`, `a3_air_f_epc_plane_cas_01`, `a3_air_f_epc_plane_cas_02`, `a3_air_f_epc_plane_fighter_03`, `a3_air_f_gamma_plane_fighter_03`, `a3_air_f_gamma_uav_01`, `a3_air_f_gamma_uav_02`, `a3_air_f_heli`, `a3_air_f_heli_heli_attack_01`, `a3_air_f_heli_heli_attack_02`, `a3_air_f_heli_heli_light_01`, `a3_air_f_heli_heli_light_02`, `a3_air_f_heli_heli_light_03`, `a3_air_f_heli_heli_transport_01`, `a3_air_f_heli_heli_transport_02`, `a3_air_f_heli_heli_transport_03`, `a3_air_f_heli_heli_transport_04`, `a3_air_f_heli_light_01`, `a3_air_f_heli_light_02`, `a3_animals_f`, `a3_animals_f_animconfig`, `a3_animals_f_chicken`, `a3_animals_f_dog`, `a3_animals_f_fishes`, `a3_animals_f_goat`, `a3_animals_f_kestrel`, `a3_animals_f_rabbit`, `a3_animals_f_seagull`, `a3_animals_f_sheep`, `a3_animals_f_snakes`, `a3_animals_f_turtle`, `a3_anims_f`, `a3_anims_f_config_sdr`, `a3_anims_f_epa`, `a3_anims_f_epc`, `a3_anims_f_exp_a`, `a3_anims_f_heli`, `a3_anims_f_kart`, `a3_anims_f_mark_deployment`, `a3_armor_f`, `a3_armor_f_amv`, `a3_armor_f_apc_wheeled_03`, `a3_armor_f_beta`, `a3_armor_f_beta_apc_tracked_02`, `a3_armor_f_epb_apc_tracked_03`, `a3_armor_f_epb_mbt_03`, `a3_armor_f_epc_mbt_01`, `a3_armor_f_marid`, `a3_armor_f_panther`, `a3_armor_f_slammer`, `a3_armor_f_t100k`, `a3_baseconfig_f`, `a3_boat_f`, `a3_boat_f_beta_boat_armed_01`, `a3_boat_f_beta_boat_transport_01`, `a3_boat_f_boat_armed_01`, `a3_boat_f_boat_transport_01`, `a3_boat_f_civilian_boat`, `a3_boat_f_epc_submarine_01_f`, `a3_boat_f_gamma_boat_transport_01`, `a3_boat_f_heli_boat_armed_01`, `a3_boat_f_heli_sdv_01`, `a3_boat_f_sdv_01`, `a3_boat_f_trawler`, `a3_cargoposes_f`, `a3_cargoposes_f_heli`, `a3_characters_f`, `a3_characters_f_beta`, `a3_characters_f_blufor`, `a3_characters_f_bootcamp`, `a3_characters_f_bootcamp_common`, `a3_characters_f_civil`, `a3_characters_f_common`, `a3_characters_f_epa`, `a3_characters_f_epb`, `a3_characters_f_epb_heads`, `a3_characters_f_epc`, `a3_characters_f_gamma`, `a3_characters_f_heads`, `a3_characters_f_indep`, `a3_characters_f_kart`, `a3_characters_f_mark`, `a3_characters_f_opfor`, `a3_characters_f_proxies`, `a3_data_f`, `a3_data_f_bootcamp`, `a3_data_f_curator`, `a3_data_f_curator_characters`, `a3_data_f_curator_eagle`, `a3_data_f_curator_intel`, `a3_data_f_curator_misc`, `a3_data_f_curator_respawn`, `a3_data_f_curator_virtual`, `a3_data_f_exp_a`, `a3_data_f_exp_a_virtual`, `a3_data_f_exp_b`, `a3_data_f_heli`, `a3_data_f_hook`, `a3_data_f_kart`, `a3_data_f_kart_particleeffects`, `a3_data_f_mark`, `a3_data_f_particleeffects`, `a3_dubbing_radio_f`, `a3_editor_f`, `a3_functions_f`, `a3_functions_f_bootcamp`, `a3_functions_f_curator`, `a3_functions_f_epa`, `a3_functions_f_epc`, `a3_functions_f_exp_a`, `a3_functions_f_heli`, `a3_functions_f_mark`, `a3_functions_f_mp_mark`, `a3_language_f`, `a3_language_f_beta`, `a3_language_f_bootcamp`, `a3_language_f_curator`, `a3_language_f_epa`, `a3_language_f_epb`, `a3_language_f_epc`, `a3_language_f_exp_a`, `a3_language_f_gamma`, `a3_language_f_heli`, `a3_language_f_kart`, `a3_language_f_mark`, `a3_language_f_mp_mark`, `a3_languagemissions_f`, `a3_languagemissions_f_beta`, `a3_languagemissions_f_gamma`, `a3_languagemissions_f_kart`, `a3_languagemissions_f_mp_mark`, `a3_map_altis`, `a3_map_altis_scenes`, `a3_map_data`, `a3_map_stratis`, `a3_map_stratis_scenes`, `a3_map_vr_scenes`, `a3_misc_f`, `a3_misc_f_helpers`, `a3_missions_f`, `a3_missions_f_beta`, `a3_missions_f_bootcamp`, `a3_missions_f_curator`, `a3_missions_f_epa`, `a3_missions_f_epb`, `a3_missions_f_epc`, `a3_missions_f_exp_a`, `a3_missions_f_gamma`, `a3_missions_f_heli`, `a3_missions_f_kart`, `a3_missions_f_mark`, `a3_missions_f_mp_mark`, `a3_modules_f`, `a3_modules_f_beta`, `a3_modules_f_beta_firingdrills`, `a3_modules_f_bootcamp`, `a3_modules_f_bootcamp_misc`, `a3_modules_f_curator`, `a3_modules_f_curator_animals`, `a3_modules_f_curator_cas`, `a3_modules_f_curator_chemlights`, `a3_modules_f_curator_curator`, `a3_modules_f_curator_effects`, `a3_modules_f_curator_environment`, `a3_modules_f_curator_flares`, `a3_modules_f_curator_intel`, `a3_modules_f_curator_lightning`, `a3_modules_f_curator_mines`, `a3_modules_f_curator_misc`, `a3_modules_f_curator_multiplayer`, `a3_modules_f_curator_objectives`, `a3_modules_f_curator_ordnance`, `a3_modules_f_curator_respawn`, `a3_modules_f_curator_smokeshells`, `a3_modules_f_dyno`, `a3_modules_f_effects`, `a3_modules_f_epb`, `a3_modules_f_epb_misc`, `a3_modules_f_events`, `a3_modules_f_exp_a`, `a3_modules_f_groupmodifiers`, `a3_modules_f_hc`, `a3_modules_f_heli`, `a3_modules_f_heli_spawnai`, `a3_modules_f_intel`, `a3_modules_f_kart`, `a3_modules_f_kart_timetrials`, `a3_modules_f_livefeed`, `a3_modules_f_mark`, `a3_modules_f_mark_firingdrills`, `a3_modules_f_mark_objectives`, `a3_modules_f_marta`, `a3_modules_f_misc`, `a3_modules_f_mp_mark`, `a3_modules_f_multiplayer`, `a3_modules_f_objectmodifiers`, `a3_modules_f_sites`, `a3_modules_f_skirmish`, `a3_modules_f_strategicmap`, `a3_modules_f_supports`, `a3_modules_f_uav`, `a3_music_f`, `a3_music_f_bootcamp`, `a3_music_f_epa`, `a3_music_f_epb`, `a3_music_f_epc`, `a3_music_f_heli`, `a3_music_f_mark`, `a3_plants_f_bush`, `a3_props_f_exp_a`, `a3_props_f_exp_a_military`, `a3_props_f_exp_a_military_equipment`, `a3_roads_f`, `a3_rocks_f`, `a3_signs_f`, `a3_signs_f_ad`, `a3_soft_f`, `a3_soft_f_beta_quadbike`, `a3_soft_f_bootcamp_offroad_01`, `a3_soft_f_bootcamp_quadbike`, `a3_soft_f_bootcamp_truck`, `a3_soft_f_car`, `a3_soft_f_crusher_ugv`, `a3_soft_f_epc_truck_03`, `a3_soft_f_gamma_hemtt`, `a3_soft_f_gamma_offroad`, `a3_soft_f_gamma_quadbike`, `a3_soft_f_gamma_truckheavy`, `a3_soft_f_heli_car`, `a3_soft_f_heli_crusher_ugv`, `a3_soft_f_heli_mrap_01`, `a3_soft_f_heli_mrap_02`, `a3_soft_f_heli_mrap_03`, `a3_soft_f_heli_quadbike`, `a3_soft_f_heli_suv`, `a3_soft_f_heli_truck`, `a3_soft_f_hemtt`, `a3_soft_f_kart_kart_01`, `a3_soft_f_mrap_01`, `a3_soft_f_mrap_02`, `a3_soft_f_mrap_03`, `a3_soft_f_offroad_01`, `a3_soft_f_quadbike`, `a3_soft_f_suv`, `a3_soft_f_truck`, `a3_soft_f_truckheavy`, `a3_sounds_f`, `a3_sounds_f_bootcamp`, `a3_sounds_f_epb`, `a3_sounds_f_epc`, `a3_sounds_f_exp_a`, `a3_sounds_f_mark`, `a3_static_f`, `a3_static_f_beta_mortar_01`, `a3_static_f_gamma`, `a3_static_f_gamma_aa`, `a3_static_f_gamma_at`, `a3_static_f_gamma_mortar_01`, `a3_static_f_mark_designator_01`, `a3_static_f_mark_designator_02`, `a3_static_f_mortar_01`, `a3_structures_f`, `a3_structures_f_bootcamp_civ_camping`, `a3_structures_f_bootcamp_civ_sportsgrounds`, `a3_structures_f_bootcamp_ind_cargo`, `a3_structures_f_bootcamp_items_electronics`, `a3_structures_f_bootcamp_items_food`, `a3_structures_f_bootcamp_items_sport`, `a3_structures_f_bootcamp_system`, `a3_structures_f_bootcamp_training`, `a3_structures_f_bootcamp_vr_blocks`, `a3_structures_f_bootcamp_vr_coverobjects`, `a3_structures_f_bootcamp_vr_helpers`, `a3_structures_f_bridges`, `a3_structures_f_civ`, `a3_structures_f_civ_accessories`, `a3_structures_f_civ_ancient`, `a3_structures_f_civ_belltowers`, `a3_structures_f_civ_calvaries`, `a3_structures_f_civ_camping`, `a3_structures_f_civ_chapels`, `a3_structures_f_civ_constructions`, `a3_structures_f_civ_dead`, `a3_structures_f_civ_garbage`, `a3_structures_f_civ_graffiti`, `a3_structures_f_civ_infoboards`, `a3_structures_f_civ_kiosks`, `a3_structures_f_civ_lamps`, `a3_structures_f_civ_market`, `a3_structures_f_civ_offices`, `a3_structures_f_civ_pavements`, `a3_structures_f_civ_playground`, `a3_structures_f_civ_sportsgrounds`, `a3_structures_f_civ_statues`, `a3_structures_f_civ_tourism`, `a3_structures_f_dominants`, `a3_structures_f_dominants_amphitheater`, `a3_structures_f_dominants_castle`, `a3_structures_f_dominants_church`, `a3_structures_f_dominants_hospital`, `a3_structures_f_dominants_lighthouse`, `a3_structures_f_dominants_wip`, `a3_structures_f_epa_civ_camping`, `a3_structures_f_epa_civ_constructions`, `a3_structures_f_epa_items_electronics`, `a3_structures_f_epa_items_food`, `a3_structures_f_epa_items_medical`, `a3_structures_f_epa_items_tools`, `a3_structures_f_epa_items_vessels`, `a3_structures_f_epa_mil_scrapyard`, `a3_structures_f_epa_walls`, `a3_structures_f_epb_civ_accessories`, `a3_structures_f_epb_civ_camping`, `a3_structures_f_epb_civ_dead`, `a3_structures_f_epb_civ_garbage`, `a3_structures_f_epb_civ_graffiti`, `a3_structures_f_epb_civ_playground`, `a3_structures_f_epb_furniture`, `a3_structures_f_epb_items_documents`, `a3_structures_f_epb_items_luggage`, `a3_structures_f_epb_items_military`, `a3_structures_f_epb_items_vessels`, `a3_structures_f_epb_naval_fishing`, `a3_structures_f_epc_civ_accessories`, `a3_structures_f_epc_civ_camping`, `a3_structures_f_epc_civ_garbage`, `a3_structures_f_epc_civ_infoboards`, `a3_structures_f_epc_civ_kiosks`, `a3_structures_f_epc_civ_playground`, `a3_structures_f_epc_civ_tourism`, `a3_structures_f_epc_dominants_ghosthotel`, `a3_structures_f_epc_dominants_stadium`, `a3_structures_f_epc_furniture`, `a3_structures_f_epc_items_documents`, `a3_structures_f_epc_items_electronics`, `a3_structures_f_epc_walls`, `a3_structures_f_exp_a`, `a3_structures_f_exp_a_vr_blocks`, `a3_structures_f_exp_a_vr_helpers`, `a3_structures_f_furniture`, `a3_structures_f_heli_civ_accessories`, `a3_structures_f_heli_civ_constructions`, `a3_structures_f_heli_civ_garbage`, `a3_structures_f_heli_civ_market`, `a3_structures_f_heli_furniture`, `a3_structures_f_heli_ind_airport`, `a3_structures_f_heli_ind_cargo`, `a3_structures_f_heli_ind_machines`, `a3_structures_f_heli_items_airport`, `a3_structures_f_heli_items_electronics`, `a3_structures_f_heli_items_food`, `a3_structures_f_heli_items_luggage`, `a3_structures_f_heli_items_sport`, `a3_structures_f_heli_items_tools`, `a3_structures_f_heli_vr_helpers`, `a3_structures_f_households`, `a3_structures_f_households_addons`, `a3_structures_f_households_house_big01`, `a3_structures_f_households_house_big02`, `a3_structures_f_households_house_shop01`, `a3_structures_f_households_house_shop02`, `a3_structures_f_households_house_small01`, `a3_structures_f_households_house_small02`, `a3_structures_f_households_house_small03`, `a3_structures_f_households_slum`, `a3_structures_f_households_stone_big`, `a3_structures_f_households_stone_shed`, `a3_structures_f_households_stone_small`, `a3_structures_f_households_wip`, `a3_structures_f_ind`, `a3_structures_f_ind_airport`, `a3_structures_f_ind_cargo`, `a3_structures_f_ind_carservice`, `a3_structures_f_ind_concretemixingplant`, `a3_structures_f_ind_crane`, `a3_structures_f_ind_dieselpowerplant`, `a3_structures_f_ind_factory`, `a3_structures_f_ind_fuelstation`, `a3_structures_f_ind_fuelstation_small`, `a3_structures_f_ind_pipes`, `a3_structures_f_ind_powerlines`, `a3_structures_f_ind_reservoirtank`, `a3_structures_f_ind_shed`, `a3_structures_f_ind_solarpowerplant`, `a3_structures_f_ind_tank`, `a3_structures_f_ind_transmitter_tower`, `a3_structures_f_ind_wavepowerplant`, `a3_structures_f_ind_windmill`, `a3_structures_f_ind_windpowerplant`, `a3_structures_f_items`, `a3_structures_f_items_cans`, `a3_structures_f_items_documents`, `a3_structures_f_items_electronics`, `a3_structures_f_items_gadgets`, `a3_structures_f_items_luggage`, `a3_structures_f_items_medical`, `a3_structures_f_items_military`, `a3_structures_f_items_stationery`, `a3_structures_f_items_tools`, `a3_structures_f_items_valuables`, `a3_structures_f_items_vessels`, `a3_structures_f_kart_civ_sportsgrounds`, `a3_structures_f_kart_mil_flags`, `a3_structures_f_kart_signs_companies`, `a3_structures_f_mark_items_military`, `a3_structures_f_mark_items_sport`, `a3_structures_f_mark_mil_flags`, `a3_structures_f_mark_training`, `a3_structures_f_mark_vr_helpers`, `a3_structures_f_mark_vr_shapes`, `a3_structures_f_mark_vr_targets`, `a3_structures_f_mil`, `a3_structures_f_mil_bagbunker`, `a3_structures_f_mil_bagfence`, `a3_structures_f_mil_barracks`, `a3_structures_f_mil_bunker`, `a3_structures_f_mil_cargo`, `a3_structures_f_mil_flags`, `a3_structures_f_mil_fortification`, `a3_structures_f_mil_helipads`, `a3_structures_f_mil_offices`, `a3_structures_f_mil_radar`, `a3_structures_f_mil_scrapyard`, `a3_structures_f_mil_shelters`, `a3_structures_f_mil_tenthangar`, `a3_structures_f_naval`, `a3_structures_f_naval_buoys`, `a3_structures_f_naval_fishing`, `a3_structures_f_naval_piers`, `a3_structures_f_naval_rowboats`, `a3_structures_f_research`, `a3_structures_f_signs_companies`, `a3_structures_f_system`, `a3_structures_f_training`, `a3_structures_f_training_invisibletarget`, `a3_structures_f_walls`, `a3_structures_f_wrecks`, `a3_supplies_f_heli`, `a3_supplies_f_heli_bladders`, `a3_supplies_f_heli_cargonets`, `a3_supplies_f_heli_fuel`, `a3_supplies_f_heli_slingload`, `a3_supplies_f_mark`, `a3_uav_f_characters_f_gamma`, `a3_uav_f_weapons_f_gamma_ammoboxes`, `a3_ui_f`, `a3_ui_f_bootcamp`, `a3_ui_f_curator`, `a3_ui_f_exp_a`, `a3_ui_f_heli`, `a3_ui_f_kart`, `a3_ui_f_mark`, `a3_ui_f_mp_mark`, `a3_uifonts_f`, `a3_weapons_f`, `a3_weapons_f_aaf`, `a3_weapons_f_acc`, `a3_weapons_f_ammoboxes`, `a3_weapons_f_beta`, `a3_weapons_f_beta_acc`, `a3_weapons_f_beta_ammoboxes`, `a3_weapons_f_beta_ebr`, `a3_weapons_f_beta_rifles_khaybar`, `a3_weapons_f_beta_rifles_mx`, `a3_weapons_f_beta_rifles_trg20`, `a3_weapons_f_bootcamp`, `a3_weapons_f_bootcamp_ammoboxes`, `a3_weapons_f_bootcamp_longrangerifles_gm6`, `a3_weapons_f_bootcamp_longrangerifles_m320`, `a3_weapons_f_csat`, `a3_weapons_f_dummyweapons`, `a3_weapons_f_ebr`, `a3_weapons_f_epa`, `a3_weapons_f_epa_acc`, `a3_weapons_f_epa_ammoboxes`, `a3_weapons_f_epa_ebr`, `a3_weapons_f_epa_longrangerifles_dmr_01`, `a3_weapons_f_epa_longrangerifles_gm6`, `a3_weapons_f_epa_rifles_mx`, `a3_weapons_f_epb`, `a3_weapons_f_epb_acc`, `a3_weapons_f_epb_ammoboxes`, `a3_weapons_f_epb_longrangerifles_gm3`, `a3_weapons_f_epb_longrangerifles_m320`, `a3_weapons_f_epb_rifles_mx_black`, `a3_weapons_f_epc`, `a3_weapons_f_explosives`, `a3_weapons_f_fia`, `a3_weapons_f_gamma`, `a3_weapons_f_gamma_acc`, `a3_weapons_f_gamma_ammoboxes`, `a3_weapons_f_gamma_items`, `a3_weapons_f_headgear`, `a3_weapons_f_itemholders`, `a3_weapons_f_items`, `a3_weapons_f_kart`, `a3_weapons_f_kart_pistols_pistol_signal_f`, `a3_weapons_f_launchers_law`, `a3_weapons_f_launchers_nlaw`, `a3_weapons_f_launchers_titan`, `a3_weapons_f_longrangerifles_gm6`, `a3_weapons_f_longrangerifles_m320`, `a3_weapons_f_machineguns_m200`, `a3_weapons_f_machineguns_zafir`, `a3_weapons_f_mark`, `a3_weapons_f_mark_acc`, `a3_weapons_f_mark_ebr`, `a3_weapons_f_mark_longrangerifles_dmr_01`, `a3_weapons_f_mark_longrangerifles_dmr_02`, `a3_weapons_f_mark_longrangerifles_dmr_03`, `a3_weapons_f_mark_longrangerifles_dmr_04`, `a3_weapons_f_mark_longrangerifles_dmr_05`, `a3_weapons_f_mark_longrangerifles_dmr_06`, `a3_weapons_f_mark_longrangerifles_gm6`, `a3_weapons_f_mark_longrangerifles_gm6_camo`, `a3_weapons_f_mark_longrangerifles_m320`, `a3_weapons_f_mark_longrangerifles_m320_camo`, `a3_weapons_f_mark_machineguns_m200`, `a3_weapons_f_mark_machineguns_mmg_01`, `a3_weapons_f_mark_machineguns_mmg_02`, `a3_weapons_f_mark_machineguns_zafir`, `a3_weapons_f_mark_rifles_khaybar`, `a3_weapons_f_mark_rifles_mk20`, `a3_weapons_f_mark_rifles_mx`, `a3_weapons_f_mark_rifles_sdar`, `a3_weapons_f_mark_rifles_trg20`, `a3_weapons_f_nato`, `a3_weapons_f_pistols_acpc2`, `a3_weapons_f_pistols_p07`, `a3_weapons_f_pistols_pdw2000`, `a3_weapons_f_pistols_pistol_heavy_01`, `a3_weapons_f_pistols_pistol_heavy_02`, `a3_weapons_f_pistols_rook40`, `a3_weapons_f_rifles_khaybar`, `a3_weapons_f_rifles_mk20`, `a3_weapons_f_rifles_mx`, `a3_weapons_f_rifles_sdar`, `a3_weapons_f_rifles_smg_02`, `a3_weapons_f_rifles_trg20`, `a3_weapons_f_rifles_vector`, `a3_weapons_f_uniforms`, `a3_weapons_f_vests`, `a3data`, `map_vr`, `extended_eventhandlers`, `cba_ui`, `cba_xeh`, `cba_xeh_a3`, `cba_jr` -{% endif %} + {% if include.component == "map" %} `ace_interaction` {% endif %} + {% if include.component == "maptools" %} `ace_interaction` {% endif %} + {% if include.component == "map_gestures" %} `ace_common` {% endif %} + {% if include.component == "markers" %} `ace_common` {% endif %} + {% if include.component == "medical" %} `ace_interaction`, `ace_apl` {% endif %} + {% if include.component == "medical_menu" %} `ace_medical` {% endif %} + {% if include.component == "microdagr" %} `ace_common` {% endif %} + +{% if include.component == "minedetector" %} +`ace_explosives` +{% endif %} + {% if include.component == "missileguidance" %} `ace_laser` {% endif %} + {% if include.component == "missionmodules" %} `ace_common` {% endif %} + {% if include.component == "mk6mortar" %} `ace_interaction` {% endif %} + {% if include.component == "modules" %} `ace_main` {% endif %} + {% if include.component == "movement" %} `ace_common` {% endif %} + {% if include.component == "mx2a" %} `ace_apl` {% endif %} + {% if include.component == "nametags" %} `ace_interaction` {% endif %} + {% if include.component == "nightvision" %} `ace_common` {% endif %} + {% if include.component == "noidle" %} `ace_common` {% endif %} + {% if include.component == "noradio" %} `ace_common` {% endif %} + {% if include.component == "norearm" %} `ace_common` {% endif %} + {% if include.component == "optics" %} `ace_common` {% endif %} + {% if include.component == "optionsmenu" %} `ace_common` {% endif %} + {% if include.component == "overheating" %} `ace_interaction` {% endif %} + {% if include.component == "overpressure" %} `ace_common` {% endif %} + {% if include.component == "parachute" %} `ace_common` {% endif %} + +{% if include.component == "particles" %} +`ace_common` +{% endif %} + {% if include.component == "rangecard" %} `ACE_Advanced_Ballistics` {% endif %} + {% if include.component == "realisticnames" %} `ace_common` {% endif %} + {% if include.component == "rearm" %} `ace_interaction` {% endif %} + {% if include.component == "recoil" %} `ace_common` {% endif %} + {% if include.component == "refuel" %} `ace_interaction` {% endif %} + {% if include.component == "reload" %} `ace_interaction` {% endif %} + {% if include.component == "reloadlaunchers" %} `ace_interaction` {% endif %} + {% if include.component == "repair" %} `ace_interaction` {% endif %} + {% if include.component == "respawn" %} `ace_common` {% endif %} + {% if include.component == "safemode" %} `ace_common` {% endif %} + {% if include.component == "sandbag" %} `ace_interaction` {% endif %} + {% if include.component == "scopes" %} `ace_common` {% endif %} + {% if include.component == "sitting" %} `ace_interaction` {% endif %} + {% if include.component == "slideshow" %} `ace_common` {% endif %} + {% if include.component == "smallarms" %} `ace_common` {% endif %} + {% if include.component == "spectator" %} `ace_common` {% endif %} + {% if include.component == "spottingscope" %} `ace_apl`, `ace_interaction` {% endif %} + {% if include.component == "switchunits" %} `ace_common` {% endif %} + {% if include.component == "tacticalladder" %} `ace_apl`, `ace_interaction` {% endif %} + {% if include.component == "tagging" %} `ace_interaction` {% endif %} + {% if include.component == "thermals" %} `ace_common` {% endif %} + {% if include.component == "trenches" %} `ace_interaction` {% endif %} + {% if include.component == "tripod" %} `ace_interaction` {% endif %} + {% if include.component == "ui" %} `ace_common` {% endif %} + {% if include.component == "vector" %} `ace_common` {% endif %} + {% if include.component == "vehiclelock" %} `ace_interaction` {% endif %} + {% if include.component == "vehicles" %} `ace_common` {% endif %} + {% if include.component == "viewdistance" %} `ace_common` {% endif %} + {% if include.component == "weaponselect" %} `ace_common` {% endif %} + {% if include.component == "weather" %} `ace_common` {% endif %} + {% if include.component == "winddeflection" %} `ace_weather` {% endif %} + {% if include.component == "yardage450" %} `ace_apl`, `ace_laser` {% endif %} + {% if include.component == "zeus" %} `ace_common` {% endif %} + diff --git a/tools/extract_dependencies.py b/tools/extract_dependencies.py index 53c9e3f9b4..960c38ebcd 100644 --- a/tools/extract_dependencies.py +++ b/tools/extract_dependencies.py @@ -1,17 +1,14 @@ #!/usr/bin/env python3 # Author: Jonpas -# Extracts dependencies to a file (defined in globals) for use with Jekyll include statement. -# Place generated file to "_includes/" folder on gh-pages branch and use the following line to add dependencies to a feature page: +# Extracts dependencies to "docs/_includes/dependencies_list.md" for use with Jekyll include statement. +# Use the following line to add dependencies to a feature page: # {% include dependencies_list.md component="" %} import os import sys import re -######## GLOBALS ######### -FILE_EXTRACTED = "temp\\dependencies_list.md" -########################## def get_dependencies(line): dependencies = re.findall(r'"(.*?)"', line) @@ -29,15 +26,22 @@ def main(): scriptpath = os.path.realpath(__file__) projectpath = os.path.dirname(os.path.dirname(scriptpath)) addonspath = os.path.join(projectpath, "addons") + includepath = os.path.join(projectpath, "docs", "_includes") + dependenciespath = os.path.join(includepath, "dependencies_list.md") # Prepare directory and file - if not os.path.exists("temp"): - os.makedirs("temp") + if not os.path.exists(includepath): + print("Jekyll documentation not found!") + sys.exit(0) - open(FILE_EXTRACTED, "w").close() + open(dependenciespath, "w", newline="\n").close() # Iterate through folders in the addons directory for folder in next(os.walk(addonspath))[1]: + # Ignore "main" component + if folder == "main": + continue + # Open config.cpp file and extract dependencies data = [] with open(os.path.join(addonspath, folder, "config.cpp")) as file: @@ -68,15 +72,13 @@ def main(): data = "`{}`".format(data) print("{}: {}".format(folder,data)) - with open(FILE_EXTRACTED, "a") as file: + with open(dependenciespath, "a", newline="\n") as file: file.writelines([ "{% if include.component == \"" + folder + "\" %}\n", "{}\n".format(data), - "{% endif %}\n", + "{% endif %}\n\n", ]) - print("\nCopy 'temp\dependencies_list.md' to '_includes/' folder on 'gh-pages' branch.") - if __name__ == "__main__": main()