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
38d2a20e
Commit
38d2a20e
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Switched make-related string constants to macros.
parent
a422e749
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/install/sbbsinst.c
+15
-16
15 additions, 16 deletions
src/sbbs3/install/sbbsinst.c
with
15 additions
and
16 deletions
src/sbbs3/install/sbbsinst.c
+
15
−
16
View file @
38d2a20e
...
...
@@ -49,16 +49,18 @@
/* Definitions */
/***************/
#define DEFAULT_CVSROOT ":pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs"
#define DIST_LIST_URL1 "ftp://freebsd.synchro.net/main/misc/sbbs
-rel
.lst"
#define DIST_LIST_URL2 "ftp://freebsd.synchro.net/main/misc/sbbs
-rel
.lst"
#define DIST_LIST_URL3 "ftp://freebsd.synchro.net/main/misc/sbbs
-rel
.lst"
#define DIST_LIST_URL4 "ftp://freebsd.synchro.net/main/misc/sbbs
-rel
.lst"
#define DIST_LIST_URL1 "ftp://freebsd.synchro.net/main/misc/sbbs
dist
.lst"
#define DIST_LIST_URL2 "ftp://freebsd.synchro.net/main/misc/sbbs
dist
.lst"
#define DIST_LIST_URL3 "ftp://freebsd.synchro.net/main/misc/sbbs
dist
.lst"
#define DIST_LIST_URL4 "ftp://freebsd.synchro.net/main/misc/sbbs
dist
.lst"
#define DEFAULT_DISTFILE "sbbs-src.tgz"
#define DEFAULT_LIBFILE "libs-%s.tgz"
/* MUST HAVE ONE %s */
#define MAX_DISTRIBUTIONS 50
#define MAX_DIST_FILES 10
#define MAX_SERVERS 100
#define MAX_FILELEN 32
#define MAKE_CMDLINE "gmake install -f install/GNUmakefile"
#define MAKE_ERROR "make failure.\n"
/*******************/
/* DistList Format */
...
...
@@ -276,10 +278,10 @@ int main(int argc, char **argv)
sprintf
(
mopt
[
i
++
],
"%-27.27s"
,
"Start Installation..."
);
mopt
[
i
][
0
]
=
0
;
uifc
.
helpbuf
=
"`Synchronet Installation
Settings
:`
\n
"
uifc
.
helpbuf
=
"`Synchronet Installation:`
\n
"
"
\n
ToDo: Add help."
;
switch
(
uifc
.
list
(
WIN_ESC
|
WIN_MID
|
WIN_ACT
,
0
,
0
,
70
,
&
main_dflt
,
0
,
"Synchronet Installation
Settings
"
,
mopt
))
{
,
"Synchronet Installation"
,
mopt
))
{
case
0
:
i
=
choose_dist
((
char
**
)
distlist
);
if
(
i
>=
0
)
{
...
...
@@ -333,7 +335,7 @@ int main(int argc, char **argv)
uifc
.
helpbuf
=
"`Debug Build`
\n
"
"
\n
ToDo: Add help."
;
i
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"Build a
d
ebug
v
ersion"
,
opt
);
,
"Build a
D
ebug
V
ersion"
,
opt
);
if
(
!
i
)
params
.
debug
=
TRUE
;
else
if
(
i
==
1
)
...
...
@@ -432,9 +434,8 @@ void install_sbbs(struct dist_t *dist,struct server_ent_t *server) {
printf
(
"Could not checkout install makefile.
\n
"
);
exit
(
EXIT_FAILURE
);
}
sprintf
(
cmd
,
"gmake install -f install/GNUmakefile"
);
if
(
system
(
cmd
))
{
printf
(
"'Nuff said.
\n
"
);
if
(
system
(
MAKE_CMDLINE
))
{
printf
(
MAKE_ERROR
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
@@ -473,9 +474,8 @@ void install_sbbs(struct dist_t *dist,struct server_ent_t *server) {
}
unlink
(
dist
->
files
[
i
]);
}
sprintf
(
cmd
,
"gmake install -f install/GNUmakefile"
);
if
(
system
(
cmd
))
{
printf
(
"'Nuff said.
\n
"
);
if
(
system
(
MAKE_CMDLINE
))
{
printf
(
MAKE_ERROR
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
@@ -488,9 +488,8 @@ void install_sbbs(struct dist_t *dist,struct server_ent_t *server) {
exit
(
EXIT_FAILURE
);
}
}
sprintf
(
cmd
,
"gmake install -f install/GNUmakefile"
);
if
(
system
(
cmd
))
{
printf
(
"'Nuff said.
\n
"
);
if
(
system
(
MAKE_CMDLINE
))
{
printf
(
MAKE_ERROR
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
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