Initial commit

This commit is contained in:
2022-08-19 15:22:33 +02:00
commit d682fae506
545 changed files with 48172 additions and 0 deletions

22
unix/sys_home.f Normal file
View File

@ -0,0 +1,22 @@
!!-----------------------------------------------------------------------------
!!
subroutine SYS_HOME(HOME) !!
!! =========================
!!
!! get home directory (+ dot) as prefix for preferences files
character HOME*(*) !! (out) filename
integer l
call sys_getenv('HOME',home)
call str_trim(home, home, l)
if (l .lt. len(home)-1) then
if (home(l:l) .ne. '/') then
home(l+1:l+1)='/'
l=l+1
endif
home(l+1:l+1)='.'
l=l+1
endif
end