Check-in [7ee854e7ac]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add special case for SNAP to setup environment
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7ee854e7ac89ed609a9013c2cceca4b93597b0f5
User & Date: bernd 2020-02-24 23:22:28.534
Context
2020-02-25
22:50
If netlink permission denied, just don't run netlink task check-in: e894818bf1 user: bernd tags: trunk
2020-02-24
23:22
Add special case for SNAP to setup environment check-in: 7ee854e7ac user: bernd tags: trunk
23:04
Add explanation for uselessness of the current config check-in: 2af254574f user: bernd tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to do.
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

echo "This script builds net2o from scratch"

GFORTH=gforth-0.7.9_20200213

if [ "$(uname -o)" = "Cygwin" ]
then
    CONFOPT="--prefix=/usr $*"
else
    CONFOPT="$*"
fi




|







1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

echo "This script builds net2o from scratch"

GFORTH=gforth-0.7.9_20200224

if [ "$(uname -o)" = "Cygwin" ]
then
    CONFOPT="--prefix=/usr $*"
else
    CONFOPT="$*"
fi
Changes to tools.fs.
456
457
458
459
460
461
462

463
464
465





466
467
468
469
470
471
472
    getenv 2dup d0= IF  rdrop 2drop  EXIT  THEN
    [: type ." /net2o" ;] r> $set ;
: xdg-dir-config ( -- )
    "XDG_DATA_HOME"   .net2o$        xdg-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$ $!





    xdg-dir-config
    subdir-config ;
default-dir-config

#2 date# !
#20 logsize# !
pad $400 get-dir rootdirs$ $!







>
|
|
|
>
>
>
>
>







456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
    getenv 2dup d0= IF  rdrop 2drop  EXIT  THEN
    [: type ." /net2o" ;] r> $set ;
: xdg-dir-config ( -- )
    "XDG_DATA_HOME"   .net2o$        xdg-config
    "XDG_CONFIG_HOME" .net2o-config$ xdg-config
    "XDG_CACHE_HOME"  .net2o-cache$  xdg-config ;
: default-dir-config ( -- )
    "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

#2 date# !
#20 logsize# !
pad $400 get-dir rootdirs$ $!