23
23
! > ``fpm-help`` and ``fpm --list`` help pages below to make sure the help output
24
24
! > is complete and consistent as well.
25
25
module fpm_command_line
26
- use fpm_environment, only : get_os_type, get_env, os_is_unix, &
26
+ use fpm_environment, only : get_os_type, get_env, &
27
27
OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_WINDOWS, &
28
28
OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD
29
29
use M_CLI2, only : set_args, lget, sget, unnamed, remaining, specified
@@ -112,10 +112,8 @@ module fpm_command_line
112
112
end type
113
113
114
114
type, extends(fpm_cmd_settings) :: fpm_clean_settings
115
- logical :: is_unix
116
- character (len= :), allocatable :: calling_dir ! directory clean called from
117
- logical :: clean_skip= .false.
118
- logical :: clean_call= .false.
115
+ logical :: clean_skip = .false.
116
+ logical :: clean_call = .false.
119
117
end type
120
118
121
119
type, extends(fpm_build_settings) :: fpm_publish_settings
@@ -217,7 +215,6 @@ subroutine get_command_line_settings(cmd_settings)
217
215
character (len= 4096 ) :: cmdarg
218
216
integer :: i
219
217
integer :: os
220
- logical :: is_unix
221
218
type (fpm_install_settings), allocatable :: install_settings
222
219
type (version_t) :: version
223
220
character (len= :), allocatable :: common_args, compiler_args, run_args, working_dir, &
@@ -243,7 +240,6 @@ subroutine get_command_line_settings(cmd_settings)
243
240
case (OS_UNKNOWN); os_type = " OS Type: Unknown"
244
241
case default ; os_type = " OS Type: UNKNOWN"
245
242
end select
246
- is_unix = os_is_unix(os)
247
243
248
244
! Get current release version
249
245
version = fpm_version()
@@ -588,7 +584,7 @@ subroutine get_command_line_settings(cmd_settings)
588
584
& build_tests= .true. , &
589
585
& name= names, &
590
586
& runner= val_runner, &
591
- & verbose= lget(' verbose' ) )
587
+ & verbose= lget(' verbose' ))
592
588
593
589
case (' update' )
594
590
call set_args(common_args // ' --fetch-only F --clean F' , &
@@ -613,10 +609,8 @@ subroutine get_command_line_settings(cmd_settings)
613
609
allocate (fpm_clean_settings :: cmd_settings)
614
610
call get_current_directory(working_dir, error)
615
611
cmd_settings= fpm_clean_settings( &
616
- & is_unix= is_unix, &
617
- & calling_dir= working_dir, &
618
612
& clean_skip= lget(' skip' ), &
619
- clean_call= lget(' all' ))
613
+ & clean_call= lget(' all' ))
620
614
621
615
case (' publish' )
622
616
call set_args(common_args // compiler_args // ' &
0 commit comments