From: Jean-Philippe Orsini Date: Tue, 8 May 2012 19:51:24 +0000 (+0000) Subject: removed useless files X-Git-Tag: v1.3.0~91 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=6eaa4698c87ac78d848b13dc92893cf1948db9a6 removed useless files --- diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 44c20a3..0000000 --- a/ChangeLog +++ /dev/null @@ -1,7 +0,0 @@ -2012-05-05 gettextize - - * Makefile.am (ACLOCAL_AMFLAGS): New variable. - (EXTRA_DIST): New variable. - * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in. - (AM_GNU_GETTEXT_VERSION): Bump to 0.18.1. - diff --git a/Makefile.am b/Makefile.am index 56e7eb5..494ee89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ SUBDIRS = po src tests www -dist_doc_DATA = README COPYING NEWS AUTHORS INSTALL +dist_doc_DATA = COPYING NEWS AUTHORS INSTALL ACLOCAL_AMFLAGS = -I m4 diff --git a/README b/README deleted file mode 100644 index e69de29..0000000 diff --git a/po/fr.po b/po/fr.po index 833fb55..ee68600 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ppastats 0.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2012-05-08 15:00+0200\n" +"POT-Creation-Date: 2012-05-08 21:44+0200\n" "PO-Revision-Date: 2012-05-05 23:45+0200\n" "Last-Translator: \n" "Language-Team: French\n" @@ -31,31 +31,26 @@ msgstr "" msgid "exceed cache capacity" msgstr "" -#: src/html.c:378 -#, c-format -msgid "failed to open: %s" -msgstr "" - -#: src/html.c:406 +#: src/html.c:385 msgid "Failed to get the header template" msgstr "" -#: src/html.c:413 +#: src/html.c:392 #, c-format msgid "Failed to open: %s" msgstr "" -#: src/html.c:454 +#: src/html.c:438 #, c-format msgid "generating %s" msgstr "" -#: src/html.c:481 src/html.c:494 +#: src/html.c:506 src/html.c:519 #, c-format msgid "Generating %s" msgstr "" -#: src/html.c:557 +#: src/html.c:582 #, c-format msgid "Copying %s %s" msgstr "" diff --git a/po/ppastats.pot b/po/ppastats.pot index 770c39b..869b8a9 100644 --- a/po/ppastats.pot +++ b/po/ppastats.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ppastats 0.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2012-05-08 15:00+0200\n" +"POT-Creation-Date: 2012-05-08 21:44+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,31 +31,26 @@ msgstr "" msgid "exceed cache capacity" msgstr "" -#: src/html.c:378 -#, c-format -msgid "failed to open: %s" -msgstr "" - -#: src/html.c:406 +#: src/html.c:385 msgid "Failed to get the header template" msgstr "" -#: src/html.c:413 +#: src/html.c:392 #, c-format msgid "Failed to open: %s" msgstr "" -#: src/html.c:454 +#: src/html.c:438 #, c-format msgid "generating %s" msgstr "" -#: src/html.c:481 src/html.c:494 +#: src/html.c:506 src/html.c:519 #, c-format msgid "Generating %s" msgstr "" -#: src/html.c:557 +#: src/html.c:582 #, c-format msgid "Copying %s %s" msgstr "" diff --git a/src/html.c b/src/html.c index 8a12524..a471665 100644 --- a/src/html.c +++ b/src/html.c @@ -88,7 +88,7 @@ static char *get_header(const char *title, const char *script) if (res != tmp) free(tmp); - + return res; } @@ -470,22 +470,20 @@ version_to_html(struct ppa_stats *ppa, return ; } - f_name = malloc(strlen(pkg->name)+1+strlen(version->version)+1); sprintf(f_name, "%s_%s", pkg->name, version->version); path = path_new(dir, f_name, ".html"); script_tpl = "var data = %s;\n ppastats_ver();"; - script = malloc(strlen(script_tpl) - 2 +strlen(json) + 1); + script = malloc(strlen(script_tpl) - 2 + strlen(json) + 1); sprintf(script, script_tpl, json); - + create_html(path, f_name, body, script); - + free(json); free(path); free(f_name); - } static void