Commit a7914964 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Add PO

parent 07348647
Pipeline #27633 failed with stage
in 31 seconds
*~
.deps
.dir-locals.el
**/*~
ABOUT-NLS
config.rpath
doc/version.texi
lib
m4/.gitignore
m4/extern-inline.m4
m4/gnulib-cache.m4
po/Makefile.in.in
po/Makevars.template
po/Rules-quot
po/boldquot.sed
po/en@boldquot.header
po/en@quot.header
po/*.gmo
po/insert-header.sin
po/quot.sed
po/remove-potcdate.sin
Makefile
Makefile.in
aclocal.m4
ar-lib
autom4te.cache
compile
config.guess
config.h
config.h.in
config.log
config.rpath
config.status
config.sub
configure
depcomp
devel-build
doc/Makefile
doc/mdate-sh
doc/stamp-vti
doc/tarot.info
doc/texinfo.tex
doc/version.texi
doc/version.texi/config.rpath
indent.stamp
install-sh
libtarot-*.tar.gz
lib
libtool
ltmain.sh
missing
m4/.gitignore
m4/extern-inline.m4
m4/gnulib-cache.m4
m4/libtool.m4
m4/ltoptions.m4
m4/ltversion.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
test-driver
doc/mdate-sh
doc/stamp-vti
doc/tarot.info
doc/texinfo.tex
doc/version.texi/config.rpath
m4/00gnulib.m4
m4/codeset.m4
m4/extensions.m4
m4/fcntl-o.m4
m4/gettext.m4
m4/glibc21.m4
m4/glibc2.m4
m4/gnulib-cache.m4
m4/gnulib-common.m4
m4/gnulib-comp.m4
m4/gnulib-tool.m4
m4/iconv.m4
m4/intdiv0.m4
m4/intldir.m4
m4/intl.m4
m4/intlmacosx.m4
m4/intmax.m4
m4/inttypes_h.m4
m4/inttypes-pri.m4
m4/lcmessage.m4
m4/lib-ld.m4
m4/lib-link.m4
m4/lib-prefix.m4
m4/libtool.m4
m4/lock.m4
m4/longlong.m4
m4/lt~obsolete.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/nls.m4
m4/po.m4
m4/printf-posix.m4
m4/progtest.m4
m4/size_max.m4
m4/stdint_h.m4
m4/threadlib.m4
m4/uintmax_t.m4
m4/visibility.m4
m4/wchar_t.m4
m4/wint_t.m4
m4/xsize.m4
missing
po/*.gmo
po/Makefile
po/Makefile.in.in
po/Makevars.template
po/POTFILES
po/POTFILES.in
po/Rules-quot
po/boldquot.sed
po/en@boldquot.header
po/en@quot.header
po/insert-header.sin
po/quot.sed
po/remove-potcdate.sed
po/remove-potcdate.sin
po/stamp-po
src/Makefile
stamp-h1
tarot-*.tar.gz
test-driver
\ No newline at end of file
#!/bin/sh
mkdir -p lib
touch lib/Makefile.in
echo "Preparing: autoreconf..."
autoreconf --install --warnings=all || exit 1
echo "Preparing: gnulib..."
gnulib-tool --libtool --import gettext || exit 1
echo "Building the package..."
mkdir -p devel-build || exit 1
cd devel-build || exit 1
# Please also check out hooks/pre-commit.sh
../configure \
--enable-indent \
CPPFLAGS="-Wall -Wextra -Werror -g -O0" || exit 1
BUILDDIR=$PWD
SRCDIR=$(dirname "$(readlink -f "$0")")
rm -f ../.dir-locals.el || exit 1
ln -s devel-build/.dir-locals.el ../.dir-locals.el || exit 1
make -j 16 distcheck || exit 1
cd $SRCDIR || exit 1
mkdir -p lib || exit 1
echo "" > lib/Makefile.am
rm -f ../.git/hooks/pre-commit || exit 1
mkdir -p ../.git/hooks || exit 1
ln -s ../../hooks/pre-commit.sh ../.git/hooks/pre-commit || exit 1
chmod ugo+x ../.git/hooks/pre-commit || exit 1
echo "Gnulib..."
gnulib-tool --libtool --import gettext || exit 1
echo "Libtoolize..."
libtoolize --install --warnings=all --warnings=error || exit 1
echo "Autopoint..."
touch po/POTFILES.in
autopoint --force || exit 1
echo "Aclocal..."
aclocal -I m4 --install --warnings=all --warnings=error || exit 1
echo "Autoheader..."
autoheader --warnings=all --warnings=error || exit 1
echo "Automake..."
automake --add-missing --warnings=all --warnings=error || exit 1
echo "Autoconf..."
autoconf --warnings=all || exit 1
cd $BUILDDIR || exit 1
$SRCDIR/configure "$@" || exit 1
rm po/POTFILES.in
if [ -d "$SRCDIR/.git" ] ; then
mkdir -p $SRCDIR/.git/hooks || exit 1
rm -f $SRCDIR/.git/hooks/pre-commit || exit 1
# ln -s source-relative-to-destination-dirname destination
ln -s ../../hooks/pre-commit.sh \
$SRCDIR/.git/hooks/pre-commit || exit 1
chmod ugo+x $SRCDIR/.git/hooks/pre-commit || exit 1
fi
......@@ -9,9 +9,9 @@ AC_CONFIG_MACRO_DIRS([m4])
# Checks for programs.
AC_PROG_CC
gl_EARLY
AC_PROG_CC_STDC
AC_PROG_CXX
gl_EARLY
AM_INIT_AUTOMAKE([subdir-objects])
AM_PROG_AR
LT_INIT
......
#!/bin/sh
mkdir -p lib
touch lib/Makefile.in
echo "Preparing: autoreconf..."
autoreconf --install --warnings=all || exit 1
echo "Preparing: gnulib..."
gnulib-tool --libtool --import gettext || exit 1
mkdir -p deploy-build || exit 1
cd deploy-build || exit 1
../configure \
--prefix=$PWD/../public \
./bootstrap.sh \
--prefix="$PWD/public" \
CPPFLAGS="-Wall -Wextra -Werror -g -O0" || exit 1
make -j 16 distcheck || exit 1
make install-html || exit 1
......
#!/bin/sh
# https://stackoverflow.com/questions/12320220/testing-what-is-about-to-be-committed-in-a-pre-commit-hook
tmpdir=$(mktemp -d) # Or put it wherever you like
git archive HEAD | tar -xf - -C "$tmpdir" || exit 1
git diff --staged | patch -p1 -d "$tmpdir" || exit 1
cd "$tmpdir" || exit 1
CURRENT_DIR=$PWD
mkdir -p lib
touch lib/Makefile.in
echo "Preparing: autoreconf..."
autoreconf --install --warnings=all || exit 1
echo "Preparing: gnulib..."
gnulib-tool --libtool --import gettext || exit 1
# https://stackoverflow.com/questions/12320220/testing-what-is-about-to-be-committed-in-a-pre-commit-hook
tmpdir=$(mktemp -d)
mkdir "$tmpdir/original"
git archive HEAD | tar -xf - -C "$tmpdir/original" || exit 1
git diff --staged | patch -p1 -d "$tmpdir/original" || exit 1
cp -R "$tmpdir/original" "$tmpdir/rebuilt"
cd "$tmpdir/rebuilt" || exit 1
./configure \
--enable-indent\
./bootstrap.sh \
--enable-indent \
CPPFLAGS="-Wall -Wextra -Werror -g -O0" || exit 1
make -j 16 || exit 1
make -j 16 check || exit 1
make -j 16 distcheck || exit 1
cd / || exit 1
cd "$tmpdir/original"
for f in $(find . -type f) ; do
echo "Comparing $f..."
diff $f ../rebuilt/$f || exit 1
done
cd "$CURRENT_DIR" || exit 1
rm -r "$tmpdir" || exit 1
POTFILES_IN = ../src/tarot_strerror.c
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
......@@ -75,6 +77,10 @@ PO_DEPENDS_ON_POT = yes
# regenerate PO files on "make dist". Possible values are "yes" and
# "no". Set this to no if the POT file and PO files are maintained
# externally.
DIST_DEPENDS_ON_UPDATE_PO = yes
DIST_DEPENDS_ON_UPDATE_PO = no
# This does not work; I have written an external
# Rule-fix-avoid-update-po Makefile snippet to bypass it.
install-html:
\ No newline at end of file
# Local Variables:
# mode: makefile
# End:
src/tarot_strerror.c
\ No newline at end of file
# This overrides the default dist target that does trigger update-po
# even if DIST_DEPENDS_ON_UPDATE_PO is set to no
DISTFILES += Rules-fix-avoid-update-po
Makefile: Rules-fix-avoid-update-po
dist distdir:
@ >&2 echo "WARNING: I override dist and distdir to avoid a call to update-po."
@$(MAKE) dist2
# Local Variables:
# mode: makefile-gmake
# End:
DISTFILES += Rules-install-html
Makefile: Rules-install-html
.PHONY: install-html
install-html:
# Local Variables:
# mode: makefile-gmake
# End:
DISTFILES += Rules-potfiles-in
Makefile: Rules-potfiles-in
POTFILES.in: Makevars $(POTFILES_IN)
echo "# This file has been generated from the POTFILES_IN variable in" > POTFILES.in
echo "# Makevars." >> POTFILES.in
echo "$(POTFILES_IN)" | sed 's|\.\./||g' >> POTFILES.in
$(MAKE) update-po
# Local Variables:
# mode: makefile-gmake
# End:
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot devel\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2017-10-29 18:51+0100\n"
"POT-Creation-Date: 2017-11-01 15:46+0100\n"
"PO-Revision-Date: 2017-10-29 18:53+0100\n"
"Last-Translator: Vivien Kraus <vivien@planete-kraus.eu\n"
"Language-Team: FRENCH (contact me directly)\n"
......
# Tarot localization file.
# Copyright (C) 2017 Vivien Kraus <vivien@planete-kraus.eu>
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Vivien Kraus <vivien@planete-kraus.eu>
# This file is distributed under the same license as the tarot package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot devel\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2017-10-29 18:51+0100\n"
"POT-Creation-Date: 2017-11-01 15:46+0100\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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment