Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 56e05119 authored by Rob Swindell's avatar Rob Swindell 💬

Return line number up on failure.

Debugging why textgen is failing during Windows/CI build.
parent b1ae877a
Pipeline #602 failed with stage
in 18 minutes and 33 seconds
......@@ -171,11 +171,11 @@ int main(int argc, char **argv)
SAFEPRINTF(path,"%s/text.dat",p);
if((text_dat=fopen(path,"r"))==NULL) {
perror(path);
return(1);
return __LINE__;
}
if((text_h=fopen("text.h", "w"))==NULL) {
perror("text.h");
return(1);
return __LINE__;
}
fputs("/* text.h */\n",text_h);
fputs("\n",text_h);
......@@ -196,7 +196,7 @@ int main(int argc, char **argv)
sprintf(path,"%s/load/text.js",p);
if((text_js=fopen(path, "w"))==NULL) {
perror(path);
return(1);
return __LINE__;
}
fputs("/* Synchronet static text string constants */\n",text_js);
fputs("\n",text_js);
......@@ -209,7 +209,7 @@ int main(int argc, char **argv)
fputs("\n",text_js);
if((text_defaults_c=fopen("text_defaults.c","w"))==NULL) {
fprintf(stderr,"Can't open text_defaults.c!\n");
return(1);
return __LINE__;
}
fputs("/* Synchronet default text strings */\n",text_defaults_c);
fputs("\n",text_defaults_c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment