Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
purr-data
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
Container Registry
Model registry
Operate
Environments
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
nerrons
purr-data
Commits
b631c45c
Commit
b631c45c
authored
12 years ago
by
Ivica Ico Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
ok, seriously, the final hard-coded fix for the pd~ regression...
parent
027ee1fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/s_main.c
+11
-15
11 additions, 15 deletions
pd/src/s_main.c
with
11 additions
and
15 deletions
pd/src/s_main.c
+
11
−
15
View file @
b631c45c
...
...
@@ -450,13 +450,18 @@ void sys_findprogdir(char *progname)
strncpy
(
sbuf
,
progname
,
FILENAME_MAX
);
sbuf
[
FILENAME_MAX
-
1
]
=
0
;
#endif
lastslash
=
strrchr
(
sbuf
,
'/'
);
if
(
lastslash
)
#ifdef INSTALL_PREFIX
strcpy
(
sbuf2
,
INSTALL_PREFIX
);
#else
strcpy
(
sbuf2
,
"."
);
#endif
/*lastslash = strrchr(sbuf, '/');
if (!strcmp(sbuf2, "") && lastslash)
{
/
*
bash last slash to zero so that sbuf is directory pd was in,
e.g., ~/pd/bin
*/
/
/
bash last slash to zero so that sbuf is directory pd was in,
//
e.g., ~/pd/bin
*lastslash = 0;
/
*
go back to the parent from there, e.g., ~/pd
*/
/
/
go back to the parent from there, e.g., ~/pd
lastslash = strrchr(sbuf, '/');
if (lastslash)
{
...
...
@@ -464,16 +469,7 @@ void sys_findprogdir(char *progname)
sbuf2[lastslash-sbuf] = 0;
}
else strcpy(sbuf2, "..");
}
else
{
/* no slashes found. Try INSTALL_PREFIX. */
#ifdef INSTALL_PREFIX
strcpy
(
sbuf2
,
INSTALL_PREFIX
);
#else
strcpy
(
sbuf2
,
"."
);
#endif
}
}*/
/* now we believe sbuf2 holds the parent directory of the directory
pd was found in. We now want to infer the "lib" directory and the
"gui" directory. In "simple" unix installations, the layout is
...
...
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