From c70b3ec8f451a938907c7941a04c8ec0a96664d8 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 17 Sep 2016 09:31:25 +0200 Subject: [PATCH] Renamed files and autotools variables. --- autogen.sh | 6 +++--- configure.ac | 10 +++++----- src/Makefile.am | 8 ++++---- src/{autoz.c => autho.c} | 4 ++-- src/{autoz.h => autho.h} | 0 tests/Makefile.am | 4 ++-- tests/test.c | 4 ++-- tests/test_from_xml.c | 4 ++-- tests/test_from_xml_to_db.c | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) rename src/{autoz.c => autho.c} (99%) rename src/{autoz.h => autho.h} (100%) diff --git a/autogen.sh b/autogen.sh index 8904930..5b99b33 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,13 +4,13 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. -PKG_NAME="libautoz" +PKG_NAME="libzakautho" (test -f $srcdir/configure.ac \ && test -d $srcdir/src \ - && test -f $srcdir/src/autoz.h) || { + && test -f $srcdir/src/autho.h) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level libautoz directory" + echo " top-level libzakautho directory" exit 1 } diff --git a/configure.ac b/configure.ac index fa68d5f..bb37bb6 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ(2.65) AC_INIT([libzakautho], [0.0.5], [azagli@libero.it]) -AC_CONFIG_SRCDIR([src/autoz.c]) +AC_CONFIG_SRCDIR([src/autho.c]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE(-Wall) @@ -32,11 +32,11 @@ AC_PROG_RANLIB GTK_DOC_CHECK # Checks for libraries. -PKG_CHECK_MODULES(AUTOZ, [libxml-2.0 >= 2.7 - libgda-5.0 >= 5.0.0]) +PKG_CHECK_MODULES(ZAKAUTHO, [libxml-2.0 >= 2.7 + libgda-5.0 >= 5.0.0]) -AC_SUBST(AUTOZ_CFLAGS) -AC_SUBST(AUTOZ_LIBS) +AC_SUBST(ZAKAUTHO_CFLAGS) +AC_SUBST(ZAKAUTHO_LIBS) # Checks for header files. AC_HEADER_STDC diff --git a/src/Makefile.am b/src/Makefile.am index c5ab778..6c028fb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,11 +1,11 @@ -LIBS = $(AUTOZ_LIBS) +LIBS = $(ZAKAUTHO_LIBS) -AM_CPPFLAGS = $(AUTOZ_CFLAGS) \ +AM_CPPFLAGS = $(ZAKAUTHO_CFLAGS) \ -DG_LOG_DOMAIN=\"ZakAutho\" lib_LTLIBRARIES = libzakautho.la -libzakautho_la_SOURCES = autoz.c \ +libzakautho_la_SOURCES = autho.c \ resource_interface.c \ role_interface.c \ resource.c \ @@ -13,7 +13,7 @@ libzakautho_la_SOURCES = autoz.c \ libzakautho_la_LDFLAGS = -no-undefined -libzakautho_include_HEADERS = autoz.h \ +libzakautho_include_HEADERS = autho.h \ resource_interface.h \ role_interface.h \ resource.h \ diff --git a/src/autoz.c b/src/autho.c similarity index 99% rename from src/autoz.c rename to src/autho.c index 6e6a56d..e97e740 100644 --- a/src/autoz.c +++ b/src/autho.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2015 Andrea Zagli + * Copyright (C) 2010-2016 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,7 +23,7 @@ #include #include -#include "autoz.h" +#include "autho.h" #include "role.h" #include "resource.h" diff --git a/src/autoz.h b/src/autho.h similarity index 100% rename from src/autoz.h rename to src/autho.h diff --git a/tests/Makefile.am b/tests/Makefile.am index 8f12fb9..694c834 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ -LIBS = $(AUTOZ_LIBS) \ +LIBS = $(ZAKAUTHO_LIBS) \ -export-dynamic -AM_CPPFLAGS = $(AUTOZ_CFLAGS) \ +AM_CPPFLAGS = $(ZAKAUTHO_CFLAGS) \ -I$(top_srcdir)/src \ -DGUIDIR="\"@abs_builddir@\"" diff --git a/tests/test.c b/tests/test.c index 8ce2581..554b6f9 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2015 Andrea Zagli + * Copyright (C) 2010-2016 Andrea Zagli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ #include -#include "autoz.h" +#include "autho.h" #include "role.h" #include "resource.h" diff --git a/tests/test_from_xml.c b/tests/test_from_xml.c index f71349e..6c05562 100644 --- a/tests/test_from_xml.c +++ b/tests/test_from_xml.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2015 Andrea Zagli + * Copyright (C) 2010-2016 Andrea Zagli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ #include -#include "autoz.h" +#include "autho.h" int main (int argc, char **argv) diff --git a/tests/test_from_xml_to_db.c b/tests/test_from_xml_to_db.c index 342f6dc..0582fa7 100644 --- a/tests/test_from_xml_to_db.c +++ b/tests/test_from_xml_to_db.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2015 Andrea Zagli + * Copyright (C) 2010-2016 Andrea Zagli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ #include -#include "autoz.h" +#include "autho.h" int main (int argc, char **argv) -- 2.49.0