aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_filesystem.f90
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-06-23 11:02:14 +0100
committerGitHub <noreply@github.com>2021-06-23 11:02:14 +0100
commitd693d685d033c0da9c24686d61fdf6ede2caa7e4 (patch)
treee8b8640efe12ac729851f2992e6243658b5922de /src/fpm_filesystem.f90
parent0372313a91263789c843623fca0aab9a4e340e19 (diff)
parent63288a62ceeb20c53ba656b89c0f7c709ad9dbaa (diff)
downloadfpm-d693d685d033c0da9c24686d61fdf6ede2caa7e4.tar.gz
fpm-d693d685d033c0da9c24686d61fdf6ede2caa7e4.zip
Merge pull request #500 from awvwgk/version-file
Allow reading version number from file
Diffstat (limited to 'src/fpm_filesystem.f90')
-rw-r--r--src/fpm_filesystem.f901
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fpm_filesystem.f90 b/src/fpm_filesystem.f90
index 486e989..e6226b4 100644
--- a/src/fpm_filesystem.f90
+++ b/src/fpm_filesystem.f90
@@ -184,6 +184,7 @@ function dirname(path) result (dir)
character(:), allocatable :: dir
dir = path(1:scan(path,'/\',back=.true.))
+ if (len_trim(dir) == 0) dir = "."
end function dirname