1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Added KISS_TMPDIR

This commit is contained in:
Dylan Araps 2020-05-12 12:37:40 +03:00
parent f5d0fe0a5f
commit f095e9fb98
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 8 additions and 3 deletions

6
kiss
View File

@ -1647,9 +1647,9 @@ main() {
# Create the required temporary directories and set the variables # Create the required temporary directories and set the variables
# which point to them. # which point to them.
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \ mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \
"${mak_dir:=$cac_dir/build-$pid}" \ "${mak_dir:=${KISS_TMPDIR:-$cac_dir}/build-$pid}" \
"${pkg_dir:=$cac_dir/pkg-$pid}" \ "${pkg_dir:=${KISS_TMPDIR:-$cac_dir}/pkg-$pid}" \
"${tar_dir:=$cac_dir/extract-$pid}" \ "${tar_dir:=${KISS_TMPDIR:-$cac_dir}/extract-$pid}" \
"${src_dir:=$cac_dir/sources}" \ "${src_dir:=$cac_dir/sources}" \
"${log_dir:=$cac_dir/logs}" \ "${log_dir:=$cac_dir/logs}" \
"${bin_dir:=$cac_dir/bin}" "${bin_dir:=$cac_dir/bin}"

5
kiss.1
View File

@ -85,6 +85,11 @@ export KISS_FORCE=0
# #
export KISS_HOOK=/path/to/script export KISS_HOOK=/path/to/script
# Temporary directory (for builds).
# Allows one to build packages in ram or another location.
#
export KISS_TMPDIR=""
# Root directory. # Root directory.
# #
# Where installed packages will go. You won't ever need # Where installed packages will go. You won't ever need