@@ -4,7 +4,7 @@ module fpm_filesystem
4
4
use ,intrinsic :: iso_fortran_env, only : stdin= >input_unit, stdout= >output_unit, stderr= >error_unit
5
5
use fpm_environment, only: get_os_type, &
6
6
OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_WINDOWS, &
7
- OS_CYGWIN, OS_SOLARIS, OS_FREEBSD
7
+ OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD
8
8
use fpm_strings, only: f_string, replace, string_t, split
9
9
implicit none
10
10
private
@@ -192,7 +192,7 @@ logical function is_dir(dir)
192
192
193
193
select case (get_os_type())
194
194
195
- case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD)
195
+ case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD )
196
196
call execute_command_line(" test -d " // dir , exitstat= stat)
197
197
198
198
case (OS_WINDOWS)
@@ -214,7 +214,7 @@ function join_path(a1,a2,a3,a4,a5) result(path)
214
214
character (len= 1 ) :: filesep
215
215
216
216
select case (get_os_type())
217
- case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD)
217
+ case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD )
218
218
filesep = ' /'
219
219
case (OS_WINDOWS)
220
220
filesep = ' \'
@@ -283,7 +283,7 @@ subroutine mkdir(dir)
283
283
if (is_dir(dir)) return
284
284
285
285
select case (get_os_type())
286
- case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD)
286
+ case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD )
287
287
call execute_command_line(' mkdir -p ' // dir, exitstat= stat)
288
288
write (* , ' (" + ",2a)' ) ' mkdir -p ' // dir
289
289
@@ -322,7 +322,7 @@ recursive subroutine list_files(dir, files, recurse)
322
322
allocate (temp_file, source= get_temp_filename())
323
323
324
324
select case (get_os_type())
325
- case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD)
325
+ case (OS_UNKNOWN, OS_LINUX, OS_MACOS, OS_CYGWIN, OS_SOLARIS, OS_FREEBSD, OS_OPENBSD )
326
326
call execute_command_line(' ls -A ' // dir // ' > ' // temp_file, &
327
327
exitstat= stat)
328
328
case (OS_WINDOWS)
0 commit comments