1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-03 07:24:58 +03:00
inform7/inbuild/supervisor-module/Chapter 3/Inblorb Skill.w

28 lines
984 B
OpenEdge ABL
Raw Normal View History

2020-02-24 01:49:56 +02:00
[InblorbSkill::] Inblorb Skill.
2020-03-30 14:23:06 +03:00
The skill of packaging a story file and associated resources into a blorb.
2020-02-24 01:49:56 +02:00
@ =
build_skill *package_using_inblorb_skill = NULL;
void InblorbSkill::create(void) {
2020-03-30 14:23:06 +03:00
package_using_inblorb_skill =
BuildSteps::new_skill(I"package using inblorb");
METHOD_ADD(package_using_inblorb_skill, BUILD_SKILL_COMMAND_MTID,
InblorbSkill::inblorb_via_shell);
2020-02-24 01:49:56 +02:00
}
2020-03-30 14:23:06 +03:00
int InblorbSkill::inblorb_via_shell(build_skill *skill, build_step *S,
text_stream *command, build_methodology *BM, linked_list *search_list) {
2020-02-29 12:12:46 +02:00
inform_project *project = ProjectBundleManager::from_copy(S->associated_copy);
if (project == NULL) project = ProjectFileManager::from_copy(S->associated_copy);
if (project == NULL) internal_error("no project");
2020-03-30 14:23:06 +03:00
Shell::quote_file(command, BM->to_inblorb);
filename *blurb = Filenames::in(S->associated_copy->location_if_path,
2020-03-30 14:23:06 +03:00
I"Release.blurb");
2020-02-29 12:12:46 +02:00
Shell::quote_file(command, blurb);
2020-03-30 14:23:06 +03:00
Shell::quote_file(command, S->vertex->as_file);
2020-02-24 01:49:56 +02:00
return TRUE;
}