@@ -28,7 +28,7 @@ module fpm_command_line
28
28
OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD
29
29
use M_CLI2, only : set_args, lget, sget, unnamed, remaining, specified
30
30
use M_CLI2, only : get_subcommand, CLI_RESPONSE_FILE
31
- use fpm_strings, only : lower, split, fnv_1a, to_fortran_name, is_fortran_name
31
+ use fpm_strings, only : lower, split, to_fortran_name, is_fortran_name
32
32
use fpm_filesystem, only : basename, canon_path, which, run
33
33
use fpm_environment, only : get_command_arguments_quoted
34
34
use fpm_error, only : fpm_stop, error_t
@@ -262,7 +262,7 @@ subroutine get_command_line_settings(cmd_settings)
262
262
263
263
call check_build_vals()
264
264
265
- if ( size (unnamed) .gt. 1 )then
265
+ if ( size (unnamed) > 1 )then
266
266
names= unnamed(2 :)
267
267
else
268
268
names= [character (len= len (names)) :: ]
@@ -282,14 +282,14 @@ subroutine get_command_line_settings(cmd_settings)
282
282
! convert special string '..' to equivalent (shorter) '*'
283
283
! to allow for a string that does not require shift-key and quoting
284
284
do i= 1 ,size (names)
285
- if (names(i).eq. ' ..' )names(i)= ' *'
285
+ if (names(i)== ' ..' )names(i)= ' *'
286
286
enddo
287
287
288
288
c_compiler = sget(' c-compiler' )
289
289
archiver = sget(' archiver' )
290
290
allocate (fpm_run_settings :: cmd_settings)
291
291
val_runner= sget(' runner' )
292
- if (specified(' runner' ) .and. val_runner.eq. ' ' )val_runner= ' echo'
292
+ if (specified(' runner' ) .and. val_runner== ' ' )val_runner= ' echo'
293
293
cmd_settings= fpm_run_settings(&
294
294
& args= remaining,&
295
295
& profile= val_profile,&
@@ -361,7 +361,7 @@ subroutine get_command_line_settings(cmd_settings)
361
361
call fpm_stop(2 ,' only one directory name allowed' )
362
362
end select
363
363
! *! canon_path is not converting ".", etc.
364
- if (name.eq. ' .' )then
364
+ if (name== ' .' )then
365
365
call get_current_directory(name, error)
366
366
if (allocated (error)) then
367
367
write (stderr, ' ("[Error]", 1x, a)' ) error% message
@@ -414,13 +414,13 @@ subroutine get_command_line_settings(cmd_settings)
414
414
415
415
case (' help' ,' manual' )
416
416
call set_args(common_args, help_help,version_text)
417
- if (size (unnamed).lt. 2 )then
418
- if (unnamed(1 ).eq. ' help' )then
417
+ if (size (unnamed)< 2 )then
418
+ if (unnamed(1 )== ' help' )then
419
419
unnamed= [' ' , ' fpm' ]
420
420
else
421
421
unnamed= manual
422
422
endif
423
- elseif (unnamed(2 ).eq. ' manual' )then
423
+ elseif (unnamed(2 )== ' manual' )then
424
424
unnamed= manual
425
425
endif
426
426
widest= 256
@@ -505,7 +505,7 @@ subroutine get_command_line_settings(cmd_settings)
505
505
506
506
call check_build_vals()
507
507
508
- if ( size (unnamed) .gt. 1 )then
508
+ if ( size (unnamed) > 1 )then
509
509
names= unnamed(2 :)
510
510
else
511
511
names= [character (len= len (names)) :: ]
@@ -519,14 +519,14 @@ subroutine get_command_line_settings(cmd_settings)
519
519
! convert special string '..' to equivalent (shorter) '*'
520
520
! to allow for a string that does not require shift-key and quoting
521
521
do i= 1 ,size (names)
522
- if (names(i).eq. ' ..' )names(i)= ' *'
522
+ if (names(i)== ' ..' )names(i)= ' *'
523
523
enddo
524
524
525
525
c_compiler = sget(' c-compiler' )
526
526
archiver = sget(' archiver' )
527
527
allocate (fpm_test_settings :: cmd_settings)
528
528
val_runner= sget(' runner' )
529
- if (specified(' runner' ) .and. val_runner.eq. ' ' )val_runner= ' echo'
529
+ if (specified(' runner' ) .and. val_runner== ' ' )val_runner= ' echo'
530
530
cmd_settings= fpm_test_settings(&
531
531
& args= remaining, &
532
532
& profile= val_profile, &
@@ -548,7 +548,7 @@ subroutine get_command_line_settings(cmd_settings)
548
548
call set_args(common_args // ' --fetch-only F --clean F' , &
549
549
help_update, version_text)
550
550
551
- if ( size (unnamed) .gt. 1 )then
551
+ if ( size (unnamed) > 1 )then
552
552
names= unnamed(2 :)
553
553
else
554
554
names= [character (len= len (names)) :: ]
@@ -575,7 +575,6 @@ subroutine get_command_line_settings(cmd_settings)
575
575
case default
576
576
577
577
if (cmdarg.ne. ' ' .and. which(' fpm-' // cmdarg).ne. ' ' )then
578
-
579
578
call run(' fpm-' // trim (cmdarg)// ' ' // get_command_arguments_quoted(),.false. )
580
579
else
581
580
call set_args(' &
@@ -586,7 +585,7 @@ subroutine get_command_line_settings(cmd_settings)
586
585
help_text= help_usage
587
586
if (lget(' list' ))then
588
587
help_text= help_list_dash
589
- elseif (len_trim (cmdarg).eq. 0 )then
588
+ elseif (len_trim (cmdarg)== 0 )then
590
589
write (stdout,' (*(a))' )' Fortran Package Manager:'
591
590
write (stdout,' (*(a))' )' '
592
591
call printhelp(help_list_nodash)
@@ -611,7 +610,7 @@ subroutine check_build_vals()
611
610
character (len= :), allocatable :: flags
612
611
613
612
val_compiler= sget(' compiler' )
614
- if (val_compiler.eq. ' ' ) then
613
+ if (val_compiler== ' ' ) then
615
614
val_compiler= ' gfortran'
616
615
endif
617
616
@@ -627,7 +626,7 @@ subroutine printhelp(lines)
627
626
integer :: iii,ii
628
627
if (allocated (lines))then
629
628
ii= size (lines)
630
- if (ii .gt. 0 .and. len (lines).gt. 0 ) then
629
+ if (ii > 0 .and. len (lines)> 0 ) then
631
630
write (stdout,' (g0)' )(trim (lines(iii)), iii= 1 , ii)
632
631
else
633
632
write (stdout,' (a)' )' <WARNING> *printhelp* output requested is empty'
0 commit comments