aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn S. Urban <urbanjost@comcast.net>2021-03-02 22:36:26 -0500
committerJohn S. Urban <urbanjost@comcast.net>2021-03-02 22:36:26 -0500
commit337c583de74834bf50842d4bb908f75a014a31f6 (patch)
tree2064f5f6aac9bd5b681a9584f4e32756f18f9dbc
parentb406adfb30b445bceb693d3369d3875255bc671e (diff)
downloadfpm-337c583de74834bf50842d4bb908f75a014a31f6.tar.gz
fpm-337c583de74834bf50842d4bb908f75a014a31f6.zip
fix --list with globbing
-rw-r--r--fpm/src/fpm.f9018
1 files changed, 16 insertions, 2 deletions
diff --git a/fpm/src/fpm.f90 b/fpm/src/fpm.f90
index e2ed356..d3a3b0c 100644
--- a/fpm/src/fpm.f90
+++ b/fpm/src/fpm.f90
@@ -318,7 +318,7 @@ subroutine cmd_run(settings,test)
endif
endif
- call compact_list()
+ call compact_list_all()
if(line.eq.'.' .or. line.eq.' ')then ! do not report these special strings
stop
@@ -348,7 +348,7 @@ subroutine cmd_run(settings,test)
end do
endif
contains
- subroutine compact_list()
+ subroutine compact_list_all()
integer, parameter :: LINE_WIDTH = 80
integer :: i, j, nCol
j = 1
@@ -373,6 +373,20 @@ subroutine cmd_run(settings,test)
end if
end do
write(stderr,*)
+ end subroutine compact_list_all
+
+ subroutine compact_list()
+ integer, parameter :: LINE_WIDTH = 80
+ integer :: i, j, nCol
+ j = 1
+ nCol = LINE_WIDTH/col_width
+ write(stderr,*) 'Matched names:'
+ do i=1,size(executables)
+ write(stderr,'(A)',advance=(merge("yes","no ",modulo(j,nCol)==0))) &
+ & [character(len=col_width) :: basename(executables(i)%s)]
+ j = j + 1
+ enddo
+ write(stderr,*)
end subroutine compact_list
end subroutine cmd_run