Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c4ecdec8
Commit
c4ecdec8
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Use relative paths for xtrn startup_dir directories. And forward-slashes.
This makes the config files more portable/migratable.
parent
3d215714
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/install-xtrn.js
+3
-2
3 additions, 2 deletions
exec/install-xtrn.js
with
3 additions
and
2 deletions
exec/install-xtrn.js
+
3
−
2
View file @
c4ecdec8
...
...
@@ -91,6 +91,7 @@ const REVISION = "$Revision$".split(' ')[1];
const
ini_fname
=
"
install-xtrn.ini
"
;
load
(
"
sbbsdefs.js
"
);
var
relpath
=
load
({},
"
relpath.js
"
);
var
options
=
{
debug
:
false
,
...
...
@@ -160,7 +161,7 @@ function install_xtrn_item(cnf, type, name, desc, item)
var
which
;
while
((
!
which
||
which
>
xtrn_area
.
sec_list
.
length
)
&&
!
aborted
())
which
=
js
.
global
.
prompt
(
"
Install
"
+
item
.
name
+
"
into which
External Program S
ection
"
);
which
=
js
.
global
.
prompt
(
"
Install
"
+
item
.
name
+
"
into which
s
ection
"
);
if
(
aborted
())
return
false
;
which
=
parseInt
(
which
,
10
);
...
...
@@ -232,7 +233,7 @@ function install(ini_fname)
return
"
Failed to read
"
+
system
.
ctrl_dir
+
"
xtrn.cnf
"
;
var
startup_dir
=
ini_fname
.
substr
(
0
,
Math
.
max
(
ini_fname
.
lastIndexOf
(
"
/
"
),
ini_fname
.
lastIndexOf
(
"
\\
"
),
0
));
startup_dir
=
backslash
(
startup_dir
);
startup_dir
=
relpath
.
get
(
system
.
ctrl_dir
,
startup_dir
);
const
types
=
{
prog
:
{
desc
:
"
External Program
"
,
struct
:
"
xtrn
"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment