Updated copyright info, added separators and missing exports

This commit is contained in:
2024-11-01 22:25:15 +01:00
parent ee28727313
commit 84a90cefaa
15 changed files with 211 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
# ------------------------------------------------------------------------------
# File manipulation function
# This file is part of the init.sh project
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# Copyright (c) 2019-2024 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# ------------------------------------------------------------------------------
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
@@ -58,6 +58,7 @@ backup_dist()
unset file
}
export -f backup_dist
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -93,6 +94,7 @@ select_file()
unset source
}
export -f select_file
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -121,6 +123,7 @@ select_directory()
unset source
}
export -f select_directory
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -170,6 +173,7 @@ install_file()
fi
}
export -f install_file
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -200,6 +204,7 @@ append_file()
fi
}
export -f append_file
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -223,6 +228,7 @@ is_dir_empty()
return 1
}
export -f is_dir_empty
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -268,6 +274,7 @@ patch_file()
unset rights dstfile
}
export -f patch_file
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -285,6 +292,7 @@ tag_file()
done
}
export -f tag_file
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -300,6 +308,7 @@ file_exists()
return 0
}
export -f file_exists
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -315,6 +324,7 @@ file_must_exists()
unset mf
}
export -f file_must_exists
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -330,6 +340,7 @@ directory_exists()
return 0
}
export -f directory_exists
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
@@ -345,6 +356,7 @@ directory_must_exists()
unset md
}
export -f directory_must_exists
# ------------------------------------------------------------------------------
# EOF