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
Andre Robitaille
Synchronet
Commits
c0b88fd4
Project 'sbbs/sbbs' was moved to 'main/sbbs'. Please update any links and bookmarks that may still have the old path.
Commit
c0b88fd4
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Updated for Win32 builds, include git-commit hash in README.TXT.
parent
8c2692c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/testbuild.js
+34
-22
34 additions, 22 deletions
exec/testbuild.js
with
34 additions
and
22 deletions
exec/testbuild.js
+
34
−
22
View file @
c0b88fd4
...
...
@@ -41,30 +41,39 @@ var make = (platform=="win32" ? "make":"gmake");
var
archive
;
var
archive_cmd
;
var
cleanup
;
var
exclude_dirs
=
[
"
node1
"
,
"
ctrl
"
,
"
docs
"
,
"
exec
"
,
"
install
"
,
"
text
"
,
"
web
"
,
"
xtrn
"
,
"
src/crt
"
,
"
src/doors
"
,
"
src/odoors
"
,
"
src/sbbs2
"
,
"
src/syncterm
"
,
"
src/ZuulTerm
"
];
if
(
platform
==
"
win32
"
)
{
archive
=
"
sbbs_src.zip
"
;
archive_cmd
=
"
pkzip25 -exclude=*output.txt -add -dir -max
"
+
archive
;
archive_cmd
=
"
pkzip25 -exclude=*output.txt
"
+
"
-exclude=.gitignore
"
+
"
-exclude=
"
+
exclude_dirs
.
join
(
"
-exclude=
"
)
+
"
-exclude=
"
+
exclude_dirs
.
join
(
"
/* -exclude=
"
)
+
"
/*
"
+
"
-exclude=3rdp/build
"
+
"
-exclude=3rdp/build/*
"
+
"
-exclude=3rdp/dist
"
+
"
-exclude=3rdp/dist/*
"
+
"
-add -dir -max
"
+
archive
;
cleanup
=
"
rmdir /s /q
"
;
}
else
{
archive
=
"
sbbs_src.tgz
"
;
archive_cmd
=
"
tar --exclude=*output.txt
"
+
"
--exclude=node1
"
+
"
--exclude=ctrl
"
+
"
--exclude=docs
"
+
"
--exclude=exec
"
+
"
--exclude=install
"
+
"
--exclude=text
"
+
"
--exclude=web
"
+
"
--exclude=xtrn
"
+
archive_cmd
=
"
tar --exclude=*output.txt -exclude=
"
+
exclude_dirs
.
join
(
"
--exclude=
"
)
+
"
--exclude=3rdp/win32.release
"
+
"
--exclude=src/crt
"
+
"
--exclude=src/doors
"
+
"
--exclude=src/odoors
"
+
"
--exclude=src/sbbs2
"
+
"
--exclude=src/sbbs3/ctrl
"
+
"
--exclude=src/syncterm
"
+
"
--exclude=src/ZuulTerm
"
+
"
--exclude-vcs
"
+
"
--exclude-vcs-ignores
"
+
"
-czvf
"
+
archive
+
"
*
"
;
...
...
@@ -126,11 +135,11 @@ var system_description=system.local_host_name + " - " + system.os_version;
var
file
=
new
File
(
"
README.TXT
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-%s C/C++ Source Code Archive (%s)
\n
"
,
system
.
platform
,
system
.
datestr
()
));
,
system
.
platform
,
date
_
str
));
file
.
writeln
(
"
This archive contains a snap-shot of all the source code and library files
"
);
file
.
writeln
(
"
necessary for a successful
"
+
system
.
platform
+
"
build of the following Synchronet projects
"
);
file
.
writeln
(
"
as of
"
+
system
.
datestr
()
+
"
:
"
);
file
.
writeln
(
"
as of
"
+
new
Date
().
toUTCString
()
+
"
:
"
);
file
.
writeln
();
file
.
writeln
(
format
(
"
%-20s %s
"
,
"
Project Directory
"
,
"
Build Command
"
));
for
(
i
in
builds
)
{
...
...
@@ -143,13 +152,16 @@ if(file.open("wt")) {
file
.
writeln
();
file
.
writeln
(
"
For more details, see http://wiki.synchro.net/dev:source
"
);
file
.
writeln
(
"
and http://wiki.synchro.net/install:dev
"
);
file
.
writeln
();
file
.
write
(
"
git commit:
"
);
file
.
close
();
system
.
exec
(
"
git rev-parse HEAD >>
"
+
file
.
name
);
}
var
file
=
new
File
(
"
FILE_ID.DIZ
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-%s (%s) BBS Software
"
,
system
.
platform
,
system
.
architecture
));
file
.
writeln
(
format
(
"
C/C++ source code archive (%s)
"
,
system
.
datestr
()
));
file
.
writeln
(
format
(
"
C/C++ source code archive (%s)
"
,
date
_
str
));
if
(
platform
==
"
win32
"
)
file
.
writeln
(
"
Unzip *with* directories!
"
);
file
.
writeln
(
"
http://www.synchro.net
"
);
...
...
@@ -218,7 +230,7 @@ if(!file_copy(archive,dest))
var
file
=
new
File
(
"
README.TXT
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-%s (%s) Version 3 Development Executable Archive (%s)
\n
"
,
system
.
platform
,
system
.
architecture
,
system
.
datestr
()
));
,
system
.
platform
,
system
.
architecture
,
date
_
str
));
file
.
writeln
(
format
(
"
This archive contains a snap-shot of Synchronet-%s executable files
"
,
system
.
platform
));
file
.
writeln
(
"
created on
"
+
system
.
timestr
());
...
...
@@ -236,7 +248,7 @@ if(file.open("wt")) {
var
file
=
new
File
(
"
FILE_ID.DIZ
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-%s BBS Software
"
,
system
.
platform
));
file
.
writeln
(
format
(
"
Development Executable Archive (%s)
"
,
system
.
datestr
()
));
file
.
writeln
(
format
(
"
Development Executable Archive (%s)
"
,
date
_
str
));
file
.
writeln
(
"
Snapshot for experimental purposes only!
"
);
file
.
writeln
(
"
http://www.synchro.net
"
);
file
.
close
();
...
...
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