Compare commits
7 Commits
1-compile-
...
e99d9f91c9
Author | SHA1 | Date | |
---|---|---|---|
e99d9f91c9 | |||
1366551750 | |||
3e1425e27f | |||
1b72ca32bf | |||
c4ade6e8af | |||
cead310efc | |||
8dd1620936
|
33
.gitea/workflows/build-and-test.yaml
Normal file
33
.gitea/workflows/build-and-test.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: "BuildTest"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
breanches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: "Build and test"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Install build deps"
|
||||||
|
run: |
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y --no-install-recommends install build-essential \
|
||||||
|
texlive-latex-base texlive-latex-recommended
|
||||||
|
|
||||||
|
- name: "Checkout repo"
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: "Bootstrap nuweb"
|
||||||
|
run: make nuweb
|
||||||
|
|
||||||
|
- name: "Make nuweb.tex"
|
||||||
|
run: make nuweb.tex nuwebdoc.tex
|
||||||
|
|
||||||
|
- name: "Build again"
|
||||||
|
run: make nuweb
|
||||||
|
|
||||||
|
- name: "Run tests"
|
||||||
|
run: make check
|
4
latex.c
4
latex.c
@@ -461,7 +461,7 @@ void write_tex(char *file_name, char *tex_name)
|
|||||||
char * p = label_name;
|
char * p = label_name;
|
||||||
while (c =
|
while (c =
|
||||||
#line 2750 "nuweb.w"
|
#line 2750 "nuweb.w"
|
||||||
source_get(), c != nw_char) /* Here is 151a-01 */
|
source_get(), c != nw_char) /* Here is 148c-01 */
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
c =
|
c =
|
||||||
@@ -761,7 +761,7 @@ static void copy_scrap(FILE *file, int prefix, Name *name)
|
|||||||
char * p = label_name;
|
char * p = label_name;
|
||||||
while (c =
|
while (c =
|
||||||
#line 2750 "nuweb.w"
|
#line 2750 "nuweb.w"
|
||||||
source_get(), c != nw_char) /* Here is 151a-01 */
|
source_get(), c != nw_char) /* Here is 148c-01 */
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
c =
|
c =
|
||||||
|
6
scraps.c
6
scraps.c
@@ -408,7 +408,7 @@ int collect_scrap(void)
|
|||||||
char * p = label_name;
|
char * p = label_name;
|
||||||
while (c =
|
while (c =
|
||||||
#line 4388 "nuweb.w"
|
#line 4388 "nuweb.w"
|
||||||
source_get(), c != nw_char) /* Here is 151a-01 */
|
source_get(), c != nw_char) /* Here is 148c-01 */
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
c =
|
c =
|
||||||
@@ -1026,7 +1026,7 @@ int write_scraps(FILE *file, char *spelling, Scrap_Node *defs,
|
|||||||
char * p = label_name;
|
char * p = label_name;
|
||||||
while (c =
|
while (c =
|
||||||
#line 4821 "nuweb.w"
|
#line 4821 "nuweb.w"
|
||||||
pop(&reader), c != nw_char) /* Here is 151a-01 */
|
pop(&reader), c != nw_char) /* Here is 148c-01 */
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
c =
|
c =
|
||||||
@@ -2059,7 +2059,7 @@ static int reject_match(Name *name, char post, ArgManager *reader)
|
|||||||
if (sym_char(first) && sym_char(prev)) return TRUE;
|
if (sym_char(first) && sym_char(prev)) return TRUE;
|
||||||
if (op_char(last) && op_char(post)) return TRUE;
|
if (op_char(last) && op_char(post)) return TRUE;
|
||||||
if (op_char(first) && op_char(prev)) return TRUE;
|
if (op_char(first) && op_char(prev)) return TRUE;
|
||||||
return FALSE; /* Here is 150b-01 */
|
return FALSE; /* Here is 148b-01 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 6407 "nuweb.w"
|
#line 6407 "nuweb.w"
|
||||||
|
Reference in New Issue
Block a user