Skip to content
Snippets Groups Projects
Commit 66ebcec9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create localdefs.mk for the source archive

Don't require Git when building from tarball
parent 75cfa892
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4356 passed
...@@ -56,7 +56,6 @@ var exclude_dirs = [ ...@@ -56,7 +56,6 @@ var exclude_dirs = [
"src/crt", "src/crt",
"src/doors", "src/doors",
"src/odoors", "src/odoors",
"src/sbbs2",
"src/syncterm", "src/syncterm",
"src/ZuulTerm" "src/ZuulTerm"
]; ];
...@@ -78,10 +77,15 @@ if(platform=="win32") { ...@@ -78,10 +77,15 @@ if(platform=="win32") {
archive_cmd="tar --exclude=*output.txt --exclude=" + exclude_dirs.join(" --exclude=") + archive_cmd="tar --exclude=*output.txt --exclude=" + exclude_dirs.join(" --exclude=") +
" --exclude=3rdp/win32.release" + " --exclude=3rdp/win32.release" +
" --exclude-vcs" + " --exclude-vcs" +
" --exclude-vcs-ignores" +
" --dereference" + " --dereference" +
" -czvf " + archive + " *"; " -czvf " + archive + " *";
cleanup="rm -r -f " cleanup="rm -r -f "
var f = new File(temp_dir + "/src/build/localdefs.mk");
if(!f.open("w"))
throw new Error("Error " + f.error + " opening " + f.name);
f.writeln("GIT=NO");
f.writeln("RELEASE=1");
f.close();
} }
var builds var builds
...@@ -108,7 +112,7 @@ if(platform=="win32") { ...@@ -108,7 +112,7 @@ if(platform=="win32") {
builds.push(["src/sbbs3/useredit" ,"build.bat" builds.push(["src/sbbs3/useredit" ,"build.bat"
,"> " + build_output]); ,"> " + build_output]);
} else { /* Unix */ } else { /* Unix */
builds.unshift(["src/sbbs3" ,"make git_branch.h git_hash.h"]); builds.unshift(["src/sbbs3" ,"make GIT=yes gitinfo"]);
builds.push(["src/sbbs3" ,"cov-build --dir ../../cov-int make RELEASE=1 all" ,"2> " + build_output]); builds.push(["src/sbbs3" ,"cov-build --dir ../../cov-int make RELEASE=1 all" ,"2> " + build_output]);
builds.push(["src/sbbs3" ,"make RELEASE=1 gtkutils" ,"2> " + build_output]); builds.push(["src/sbbs3" ,"make RELEASE=1 gtkutils" ,"2> " + build_output]);
} }
...@@ -288,6 +292,7 @@ if(platform=="win32") { ...@@ -288,6 +292,7 @@ if(platform=="win32") {
cmd_line = "pax -s :.*/::p -wzf " + archive + " " + nix_dist.join(" "); cmd_line = "pax -s :.*/::p -wzf " + archive + " " + nix_dist.join(" ");
} }
if(!js.terminated) {
log(LOG_INFO, "Executing: " + cmd_line); log(LOG_INFO, "Executing: " + cmd_line);
system.exec(cmd_line); system.exec(cmd_line);
...@@ -296,7 +301,7 @@ dest = file_area.dir["sbbs"].path+archive; ...@@ -296,7 +301,7 @@ dest = file_area.dir["sbbs"].path+archive;
log(LOG_INFO,format("Copying %s to %s",archive,dest)); log(LOG_INFO,format("Copying %s to %s",archive,dest));
if(!file_copy(archive,dest)) if(!file_copy(archive,dest))
log(LOG_ERR,format("!ERROR copying %s to %s",archive,dest)); log(LOG_ERR,format("!ERROR copying %s to %s",archive,dest));
}
bail(0); bail(0);
/* end */ /* end */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment