Browse Source

Add cache home (~ XDG_CACHE_HOME)

Alois Mahdal 9 years ago
parent
commit
68fea49476
3 changed files with 3 additions and 0 deletions
  1. 1
    0
      bin/saturnin.skel
  2. 1
    0
      config.mk
  3. 1
    0
      setup/mk.sh

+ 1
- 0
bin/saturnin.skel View File

@@ -17,6 +17,7 @@ export FFOO_PATH="__SATURNIN_SHARE__/ffoo"
17 17
 SATURNIN_LIBEXEC="__SATURNIN_LIBEXEC__"
18 18
 export FFOO_CONFIG_PATH=$(mkconfpath | tr '\n' :)
19 19
 export SATURNIN_VERSION="__VERSION__"
20
+export SATURNIN_CACHE_HOME="__SATURNIN_CACHE_HOME__"
20 21
 
21 22
 ffoo import exits
22 23
 ffoo import pretty

+ 1
- 0
config.mk View File

@@ -4,3 +4,4 @@ PREFIX = /usr/local
4 4
 MANPREFIX = ${PREFIX}/share/man
5 5
 SATURNIN_CONFIG_PATH_LOCAL = /etc/saturnin
6 6
 SATURNIN_CONFIG_PATH_USER = .saturnin
7
+SATURNIN_CACHE_HOME = .local/share/saturnin

+ 1
- 0
setup/mk.sh View File

@@ -135,6 +135,7 @@ expand_variables() {
135 135
     perl -pe "
136 136
         s|__SATURNIN_CONFIG_LOCAL__|$SATURNIN_CONFIG_PATH_LOCAL|;
137 137
         s|__SATURNIN_CONFIG_USER__|\\\$HOME/$SATURNIN_CONFIG_PATH_USER|;
138
+        s|__SATURNIN_CACHE_HOME__|\\\$HOME/$SATURNIN_CACHE_HOME|;
138 139
         s|__SATURNIN_SHARE__|$shrdir|;
139 140
         s|__SATURNIN_LIBEXEC__|$lexdir|;
140 141
         s|__VERSION__|$(get_version)|;