+v1.3.1
+------
+
+* fixed compilation when cppcheck is not installed.
+* fixed line over 80cols.
+
v1.3.0
------
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for ppastats 1.3.0.
+# Generated by GNU Autoconf 2.69 for ppastats 1.3.1.
#
# Report bugs to <jeanfi@gmail.com>.
#
# Identity of this package.
PACKAGE_NAME='ppastats'
PACKAGE_TARNAME='ppastats'
-PACKAGE_VERSION='1.3.0'
-PACKAGE_STRING='ppastats 1.3.0'
+PACKAGE_VERSION='1.3.1'
+PACKAGE_STRING='ppastats 1.3.1'
PACKAGE_BUGREPORT='jeanfi@gmail.com'
PACKAGE_URL='http://wpitchoune.net/ppastats'
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
+CPPCHECK_FALSE
+CPPCHECK_TRUE
HAVE_CPPCHECK
HELP2MAN
JSON_FALSE
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures ppastats 1.3.0 to adapt to many kinds of systems.
+\`configure' configures ppastats 1.3.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of ppastats 1.3.0:";;
+ short | recursive ) echo "Configuration of ppastats 1.3.1:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-ppastats configure 1.3.0
+ppastats configure 1.3.1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by ppastats $as_me 1.3.0, which was
+It was created by ppastats $as_me 1.3.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='ppastats'
- VERSION='1.3.0'
+ VERSION='1.3.1'
cat >>confdefs.h <<_ACEOF
fi
+ if test -n "$HAVE_CPPCHECK"; then
+ CPPCHECK_TRUE=
+ CPPCHECK_FALSE='#'
+else
+ CPPCHECK_TRUE='#'
+ CPPCHECK_FALSE=
+fi
+
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
as_fn_error $? "conditional \"JSON\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
+ as_fn_error $? "conditional \"CPPCHECK\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by ppastats $as_me 1.3.0, which was
+This file was extended by ppastats $as_me 1.3.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-ppastats config.status 1.3.0
+ppastats config.status 1.3.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.64])
-AC_INIT([ppastats], [1.3.0],[jeanfi@gmail.com],[ppastats],[http://wpitchoune.net/ppastats])
+AC_INIT([ppastats], [1.3.1],[jeanfi@gmail.com],[ppastats],[http://wpitchoune.net/ppastats])
AM_INIT_AUTOMAKE([-Wall gnu])
AC_CHECK_PROGS([HELP2MAN], [help2man])
AC_CHECK_PROG(HAVE_CPPCHECK, cppcheck, yes)
+AM_CONDITIONAL(CPPCHECK, test -n "$HAVE_CPPCHECK")
AC_OUTPUT
msgstr ""
"Project-Id-Version: ppastats 0.0.x\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2014-04-22 01:57+0200\n"
+"POT-Creation-Date: 2014-04-22 10:58+0200\n"
"PO-Revision-Date: 2012-05-05 23:45+0200\n"
"Last-Translator: <jeanfi@gmail.com>\n"
"Language-Team: French\n"
msgid "Failed to retrieve PPA information"
msgstr ""
-#: src/ppastats.c:373
+#: src/ppastats.c:374
#, c-format
msgid "Failed to retrieve download totals for %s"
msgstr ""
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: ppastats 1.3.0\n"
+"Project-Id-Version: ppastats 1.3.1\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2014-04-22 01:57+0200\n"
+"POT-Creation-Date: 2014-04-22 10:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Failed to retrieve PPA information"
msgstr ""
-#: src/ppastats.c:373
+#: src/ppastats.c:374
#, c-format
msgid "Failed to retrieve download totals for %s"
msgstr ""
ddts = NULL;
while (date_since < crt) {
- url = create_ddts_query(binary_url, date_since, date_since);
+ url = create_ddts_query(binary_url,
+ date_since,
+ date_since);
json = get_json_object(url);
free(url);
free(url);
if (json) {
- tmp = json_object_to_daily_download_totals(json);
+ tmp = json_object_to_daily_download_totals
+ (json);
json_object_put(json);
ddts = ddts_merge(ddts, tmp);
free(tmp);
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.44.1.
-.TH PPASTATS "1" "April 2014" "ppastats 1.3.0" "User Commands"
+.TH PPASTATS "1" "April 2014" "ppastats 1.3.1" "User Commands"
.SH NAME
ppastats \- PPA Statistics command line tool
.SH SYNOPSIS
for (h_cur = history; *h_cur; ++h_cur) {
h = *h_cur;
- totals = get_daily_download_totals(h->self_link, h->date_created);
+ totals = get_daily_download_totals(h->self_link,
+ h->date_created);
if (!totals) {
log_err(_("Failed to retrieve download totals for %s"),
h->self_link);
test_strrep.c \
test_ptime.c
-TESTS = test-cppcheck.sh \
- test-strrep \
+TESTS = test-strrep \
test-ptime
check_PROGRAMS = test-strrep test-ptime
$(top_builddir)/src/ptime.c
test_ptime_CFLAGS = -I$(top_srcdir)/src
+if CPPCHECK
+TESTS += test-cppcheck.sh
+endif
\ No newline at end of file
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
-TESTS = test-cppcheck.sh test-strrep$(EXEEXT) test-ptime$(EXEEXT)
+TESTS = test-strrep$(EXEEXT) test-ptime$(EXEEXT) $(am__append_1)
check_PROGRAMS = test-strrep$(EXEEXT) test-ptime$(EXEEXT)
+@CPPCHECK_TRUE@am__append_1 = test-cppcheck.sh
subdir = tests
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/depcomp $(top_srcdir)/test-driver
am__force_recheck=am--force-recheck \
TEST_LOGS="$$log_list"; \
exit $$?
-test-cppcheck.sh.log: test-cppcheck.sh
- @p='test-cppcheck.sh'; \
- b='test-cppcheck.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
test-strrep.log: test-strrep$(EXEEXT)
@p='test-strrep$(EXEEXT)'; \
b='test-strrep'; \
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
+test-cppcheck.sh.log: test-cppcheck.sh
+ @p='test-cppcheck.sh'; \
+ b='test-cppcheck.sh'; \
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+ --log-file $$b.log --trs-file $$b.trs \
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
.test.log:
@p='$<'; \
$(am__set_b); \
<div id="footer">
- Generated by <a href='http://wpitchoune.net/ppastats'>ppastats</a> v1.3.0
+ Generated by <a href='http://wpitchoune.net/ppastats'>ppastats</a> v1.3.1
</div>
</div>
</body>