@@ -304,7 +304,8 @@ subroutine cmd_run(settings,test)
304
304
class(fpm_run_settings), intent (in ) :: settings
305
305
logical , intent (in ) :: test
306
306
307
- integer :: i, j
307
+ integer , parameter :: LINE_WIDTH = 80
308
+ integer :: i, j, col_width, nCol
308
309
logical :: found(size (settings% name))
309
310
type (error_t), allocatable :: error
310
311
type (package_t) :: package
@@ -329,6 +330,7 @@ subroutine cmd_run(settings,test)
329
330
end if
330
331
331
332
! Enumerate executable targets to run
333
+ col_width = 10
332
334
found(:) = .false.
333
335
allocate (executables(0 ))
334
336
do i= 1 ,size (model% targets)
@@ -343,6 +345,8 @@ subroutine cmd_run(settings,test)
343
345
if (exe_source% unit_scope == &
344
346
merge (FPM_SCOPE_TEST,FPM_SCOPE_APP,test)) then
345
347
348
+ col_width = max (col_width,len (basename(exe_target% output_file))+ 2 )
349
+
346
350
if (size (settings% name) == 0 ) then
347
351
348
352
exe_cmd% s = exe_target% output_file
@@ -381,6 +385,7 @@ subroutine cmd_run(settings,test)
381
385
write (stderr,* )
382
386
383
387
j = 1
388
+ nCol = LINE_WIDTH/ col_width
384
389
write (stderr,* ) ' Available names:'
385
390
do i= 1 ,size (model% targets)
386
391
@@ -394,8 +399,8 @@ subroutine cmd_run(settings,test)
394
399
if (exe_source% unit_scope == &
395
400
merge (FPM_SCOPE_TEST,FPM_SCOPE_APP,test)) then
396
401
397
- write (stderr,' (A17 )' ,advance= (merge (" yes" ," no " ,modulo (j,4 )==0 ))) basename(exe_target % output_file)
398
-
402
+ write (stderr,' (A )' ,advance= (merge (" yes" ," no " ,modulo (j,nCol )==0 ))) &
403
+ & [ character (len = col_width) :: basename(exe_target % output_file)]
399
404
j = j + 1
400
405
401
406
end if
0 commit comments