mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
proxy: Ignore files created via Makefile.
gen.c wrote "%d.txt" files, but adding "*.txt" to .gitignore might cause future documentation to be ignored. Rename to "%d.http".
This commit is contained in:
parent
e6a2430fb7
commit
e4c475f6df
3
contrib/proxy/.gitignore
vendored
Normal file
3
contrib/proxy/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
gen
|
||||||
|
proxy.py
|
||||||
|
*.http
|
@ -121,10 +121,10 @@ dicts(FILE *f)
|
|||||||
|
|
||||||
fprintf(f, "slownik = {\n");
|
fprintf(f, "slownik = {\n");
|
||||||
for (i = 0; i < counter - 1; i++) {
|
for (i = 0; i < counter - 1; i++) {
|
||||||
fprintf(f, "\t'http://%s%s' : '%d.txt',\n", tab[i].host, tab[i].string, i);
|
fprintf(f, "\t'http://%s%s' : '%d.http',\n", tab[i].host, tab[i].string, i);
|
||||||
}
|
}
|
||||||
for (; i < counter; i++) {
|
for (; i < counter; i++) {
|
||||||
fprintf(f, "\t'http://%s%s' : '%d.txt'\n", tab[i].host, tab[i].string, i);
|
fprintf(f, "\t'http://%s%s' : '%d.http'\n", tab[i].host, tab[i].string, i);
|
||||||
}
|
}
|
||||||
fprintf(f, "}\n\n");
|
fprintf(f, "}\n\n");
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ save(void)
|
|||||||
for (i = 0; i < counter; i++) {
|
for (i = 0; i < counter; i++) {
|
||||||
char buf[12];
|
char buf[12];
|
||||||
|
|
||||||
snprintf(buf, 12, "%d.txt", i);
|
snprintf(buf, 12, "%d.http", i);
|
||||||
f = fopen(buf, "w");
|
f = fopen(buf, "w");
|
||||||
if (!f)
|
if (!f)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user