diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-09 16:30:17 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2014-01-09 23:15:09 +0100 |
commit | 9ce21bd8c28792dc81aba2349ffc8a64bf5e5df0 (patch) | |
tree | 534e009f5324de72ba7356ce68de614aa263ef5b /po | |
parent | b010dbc0db987468ab50fdae098797605808e342 (diff) | |
download | attr-9ce21bd8c28792dc81aba2349ffc8a64bf5e5df0.tar.gz |
modernize build system
This deletes the hand rolled build system and replaces it entirely
with autotools. The overall diffstat shows that this is a clear
win, and it makes the package build/install like every other autotool
package out there which makes the lives of distro maintainers a lot
easier.
This should also be faster by virtue of using a non-recursive build.
Things to note:
- to generate autotools:
./autogen.sh
- to see full compile output:
make V=1
- to build specific targets:
make attr getfattr ...
- to run tests:
make check
- to create a release:
make distcheck -j
Other non-developer things:
- the xattr.conf file is now installed into sysconfdir by default
- man pages are no longer compressed as this is uncommon in the
autotools world and distros don't need it anyways (they already
handle it automatically for most pakages)
- the minor # of the shared library is now based on the package
version so it'll be much bigger ... this isn't a problem, and
is actually a bugfix (older releases didn't change when they
should have)
(Again, this is all using the standard autotool targets.)
Diffstat (limited to 'po')
-rw-r--r-- | po/.gitignore | 12 | ||||
-rw-r--r-- | po/LINGUAS | 3 | ||||
-rw-r--r-- | po/Makefile | 40 | ||||
-rw-r--r-- | po/Makevars | 41 | ||||
-rwxr-xr-x | po/update-potfiles | 13 |
5 files changed, 69 insertions, 40 deletions
diff --git a/po/.gitignore b/po/.gitignore new file mode 100644 index 0000000..b4da415 --- /dev/null +++ b/po/.gitignore @@ -0,0 +1,12 @@ +*.gmo +*.sed +*.sin +attr.pot +Makefile.in.in +Makevars.template +POTFILES +POTFILES.in +Rules-quot +en@boldquot.* +en@quot.* +stamp-po diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..76ea839 --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1,3 @@ +cs de es fr gl nl pl sv +en@boldquot +en@quot diff --git a/po/Makefile b/po/Makefile deleted file mode 100644 index d071bed..0000000 --- a/po/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de> -# -# 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 -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# - -TOPDIR = .. -include $(TOPDIR)/include/builddefs - -POTHEAD = $(PKG_NAME).pot -LINGUAS ?= cs de es fr gl nl pl sv -LSRCFILES = $(LINGUAS:%=%.po) $(POTHEAD) -LDIRT = $(POTHEAD) - -XGETTEXTFILES = $(TOPDIR)/attr/attr.c \ - $(TOPDIR)/getfattr/getfattr.c \ - $(TOPDIR)/setfattr/setfattr.c \ - $(TOPDIR)/libattr/attr_copy_fd.c \ - $(TOPDIR)/libattr/attr_copy_file.c - -default: $(POTHEAD) $(LINGUAS:%=%.mo) - -include $(BUILDRULES) - -install: default - $(INSTALL_LINGUAS) - -install-dev install-lib: diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 0000000..4b17ab3 --- /dev/null +++ b/po/Makevars @@ -0,0 +1,41 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = $(PACKAGE) + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = Silicon Graphics, Inc. + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT) + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = diff --git a/po/update-potfiles b/po/update-potfiles new file mode 100755 index 0000000..0201bff --- /dev/null +++ b/po/update-potfiles @@ -0,0 +1,13 @@ +#!/bin/sh -e + +( +echo "# updated automatically by $0" +echo +find \ + include \ + libattr \ + libmisc \ + tools \ + -name '*.[ch]' \ + | grep -v include/config.h +) > po/POTFILES.in |