Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
fbb7d277
Commit
fbb7d277
authored
Nov 03, 2016
by
Marco Berzborn
Browse files
some cleanup and fixed path handling
parent
c2c2bb53
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/HTMLhelp/ita_generate_documentation.m
View file @
fbb7d277
...
...
@@ -37,12 +37,6 @@ outpathStr = [];
outpathList
=
[];
tokenIdx
=
[
0
findstr
(
pathStr
,
pathsep
)];
if
isunix
separator
=
':'
;
else
separator
=
';'
;
end
for
idx
=
1
:(
length
(
tokenIdx
)
-
1
)
tokenCell
{
idx
}
=
pathStr
(
tokenIdx
(
idx
)
+
1
:
tokenIdx
(
idx
+
1
)
-
1
);
%get single folder name
isIgnore
=
false
;
...
...
@@ -51,7 +45,7 @@ for idx=1:(length(tokenIdx)-1)
isIgnore
=
~
isempty
(
foundIdx
)
||
isIgnore
;
end
if
~
isIgnore
%add string token
outpathStr
=
[
outpathStr
separator
tokenCell
{
idx
}];
%#ok<*AGROW>
outpathStr
=
[
outpathStr
,
pathsep
,
tokenCell
{
idx
}];
%#ok<*AGROW>
idxITA
=
findstr
(
tokenCell
{
idx
},
prefixToolbox
);
%pdi
outpathList
=
[
outpathList
;
{
tokenCell
{
idx
}(
idxITA
:
end
)}];
%throw away 'C:\...' until ITA-TB path
end
...
...
kernel/ita_path_handling.m
View file @
fbb7d277
...
...
@@ -55,10 +55,9 @@ if save_state == 1
userpath
(
'reset'
);
end
userfolder
=
evalin
(
'base'
,
'userpath'
);
userfolder
=
userfolder
(
1
:
end
-
1
);
savepath
([
userfolder
filesep
'pathdef.m'
]);
savepath
(
fullfile
(
userfolder
,
'pathdef.m'
));
try
copyfile
(
[
full
path
filesep
'kernel'
filesep
'StandardRoutines'
filesep
'ita_startup.m'
]
,
[
userfolder
filesep
'startup.m'
]
)
copyfile
(
full
file
(
fullpath
,
'kernel'
,
'StandardRoutines'
,
'ita_startup.m'
)
,
fullfile
(
userfolder
,
'startup.m'
)
)
catch
theError
ita_verbose_info
(
'ita_path_handling:writing pathdef unsuccessful, because:'
,
0
);
disp
(
theError
.
message
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment