Commit a0d06118 authored by Bernd Paysan's avatar Bernd Paysan

Add special case for SNAP to setup environment

parent dbd1cb2b
......@@ -2,7 +2,7 @@
echo "This script builds net2o from scratch"
GFORTH=gforth-0.7.9_20200213
GFORTH=gforth-0.7.9_20200224
if [ "$(uname -o)" = "Cygwin" ]
then
......
......@@ -460,9 +460,15 @@ also config
"XDG_CONFIG_HOME" .net2o-config$ xdg-config
"XDG_CACHE_HOME" .net2o-cache$ xdg-config ;
: default-dir-config ( -- )
"~/.local/share/net2o" .net2o$ $!
"~/.config/net2o" .net2o-config$ $!
"~/.cache/net2o" .net2o-cache$ $!
"SNAP_USER_COMMON" getenv 2dup d0= IF 2drop
"~/.local/share/net2o" .net2o$ $!
"~/.config/net2o" .net2o-config$ $!
"~/.cache/net2o" .net2o-cache$ $!
ELSE
.net2o$ $!
.net2o$ $@ .net2o-config$ $!
[: .net2o$ $. ." /cache" ;] .net2o-cache$ $exec
THEN
xdg-dir-config
subdir-config ;
default-dir-config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment