Skip to content

Commit

Permalink
add model build internal
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Feb 25, 2024
1 parent 037ad72 commit 8297433
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/fpm/git.f90
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,10 @@ subroutine git_archive(source, destination, ref, verbose, error)
call fatal_error(error, "Cannot find a suitable archive format for 'git archive'."); return
end if

call run('fpm build --dump fpm_model.json', echo=verbose, exitstat=stat)
call run('git archive ' &
// ref // &
' --format=' // archive_format // &
' -o ' // destination // &
' --add-file=fpm_model.json', echo=verbose, exitstat=stat)
call run('rm fpm_model.json', echo=verbose, exitstat=stat)
' -o ' // destination , echo=verbose, exitstat=stat)
if (stat /= 0) then
call fatal_error(error, "Error packing '"//source//"'."); return
end if
Expand Down
2 changes: 0 additions & 2 deletions src/fpm_command_line.f90
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ module fpm_command_line
logical :: show_upload_data = .false.
logical :: is_dry_run = .false.
character(len=:), allocatable :: token
character(len=:),allocatable :: dump_model
end type

character(len=:),allocatable :: name
Expand Down Expand Up @@ -723,7 +722,6 @@ subroutine get_command_line_settings(cmd_settings)
& show_model=lget('show-model'),&
& build_tests=lget('tests'),&
& verbose=lget('verbose'),&
& dump_model = 'fpm_model.json',&
& token=token_s)

case default
Expand Down

0 comments on commit 8297433

Please sign in to comment.