mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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");
|
||||
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++) {
|
||||
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");
|
||||
}
|
||||
@ -138,7 +138,7 @@ save(void)
|
||||
for (i = 0; i < counter; i++) {
|
||||
char buf[12];
|
||||
|
||||
snprintf(buf, 12, "%d.txt", i);
|
||||
snprintf(buf, 12, "%d.http", i);
|
||||
f = fopen(buf, "w");
|
||||
if (!f)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user