1
0
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:
Kalle Olavi Niemitalo 2007-07-17 14:38:43 +03:00 committed by Kalle Olavi Niemitalo
parent e6a2430fb7
commit e4c475f6df
2 changed files with 6 additions and 3 deletions

3
contrib/proxy/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
gen
proxy.py
*.http

View File

@ -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;