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
15875be1
Commit
15875be1
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Changed toggle option from "Release Version" to "Debug Build" (defaults to No).
parent
0f85c843
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
src/sbbs3/install/sbbsinst.c
+11
-11
11 additions, 11 deletions
src/sbbs3/install/sbbsinst.c
with
11 additions
and
11 deletions
src/sbbs3/install/sbbsinst.c
+
11
−
11
View file @
15875be1
...
...
@@ -89,7 +89,7 @@ struct {
char
install_path
[
256
];
BOOL
usebcc
;
char
cflags
[
256
];
BOOL
release
;
BOOL
debug
;
BOOL
symlink
;
BOOL
cvs
;
char
cvstag
[
256
];
...
...
@@ -156,7 +156,7 @@ int main(int argc, char **argv)
strcpy
(
params
.
install_path
,
"/usr/local/sbbs"
);
params
.
usebcc
=
FALSE
;
strcpy
(
params
.
cflags
,
""
);
params
.
release
=
TRU
E
;
params
.
debug
=
FALS
E
;
params
.
symlink
=
TRUE
;
params
.
cvs
=
TRUE
;
strcpy
(
params
.
cvstag
,
"HEAD"
);
...
...
@@ -289,7 +289,7 @@ while(1) {
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"Install Path"
,
params
.
install_path
);
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"Compiler"
,
params
.
usebcc
?
"BCC"
:
"GCC"
);
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"Compiler Flags"
,
params
.
cflags
);
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"
Release Version
"
,
params
.
release
?
"Yes"
:
"No"
);
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"
Debug Build
"
,
params
.
debug
?
"Yes"
:
"No"
);
sprintf
(
mopt
[
i
++
],
"%-33.33s%s"
,
"Symlink Binaries"
,
params
.
symlink
?
"Yes"
:
"No"
);
sprintf
(
mopt
[
i
++
],
"%-33.33s"
,
"Start Installation"
);
mopt
[
i
][
0
]
=
0
;
...
...
@@ -333,15 +333,15 @@ while(1) {
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
i
=
params
.
release
?
0
:
1
;
uifc
.
helpbuf
=
"`
Build Release Version
`
\n
"
i
=
params
.
debug
?
0
:
1
;
uifc
.
helpbuf
=
"`
Debug Build
`
\n
"
"
\n
ToDo: Add help."
;
i
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"Build a
release
version"
,
opt
);
,
"Build a
debug
version"
,
opt
);
if
(
!
i
)
params
.
release
=
TRUE
;
params
.
debug
=
TRUE
;
else
if
(
i
==
1
)
params
.
release
=
FALSE
;
params
.
debug
=
FALSE
;
i
=
0
;
break
;
case
4
:
...
...
@@ -391,10 +391,10 @@ void install_sbbs(struct dist_t *release,struct server_ent_t *server) {
int
fout
,
ret1
,
ret2
;
ftp_FILE
*
remote
;
if
(
params
.
release
)
putenv
(
"RELEASE=1"
);
else
if
(
params
.
debug
)
putenv
(
"DEBUG=1"
);
else
putenv
(
"RELEASE=1"
);
if
(
params
.
symlink
)
putenv
(
"SYMLINK=1"
);
...
...
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