Commit 6f6d9202 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Squash branch '123-rewrite-the-tarot-app'

Please refer to this specific branch.
parent 2f085c0a
;; .dir-locals.el.in
;;
;; Copyright (C) 2019 Vivien Kraus <vivien@planete-kraus.eu>
;;
;; 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 3 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/>.
((nil
(compile-command . "make -C @abs_top_srcdir@ VALAFLAGS=\"--no-color\" check distcheck")))
*~
.dir-locals.el
/**/*.def
/**/*.gir
/**/*.la
/**/*.lo
/**/*.log
/**/*.o
/**/*.trs
/**/*.typelib
/**/*.vapi
/**/.deps
/**/.dirstamp
/**/.libs
/.gitcheck
/.version
/ABOUT-NLS
/AUTHORS
/ChangeLog
/INSTALL
/Makefile
/Makefile.in
/README
/README.md
/aclocal.m4
/ar-lib
/autom4te.cache
/compile
/config.guess
/config.h
/config.h.in
/config.log
/config.rpath
/config.status
/config.sub
/configure
/debian/changelog
/depcomp
/doc/basic-initialization
/doc/basic-initialization.c
/doc/events
/doc/events.c
/doc/org-stamp
/doc/petit-sec
/doc/petit-sec.c
/doc/players-and-cards
/doc/players-and-cards.c
/doc/tarot-figures
/doc/tarot-tune
/doc/tarot.info
/doc/tarot.man
/doc/tarot.texi
/doc/tarot.xml
/doc/xml
/doc/xml.c
/eu.planete_kraus.Tarot.appdata.xml
/eu.planete_kraus.Tarot.appdata.xml.in
/eu.planete_kraus.Tarot.desktop
/eu.planete_kraus.Tarot.json.in
/git-version-gen
/gitlog-to-changelog
/index.html
/install-sh
/lib
/libtool
/ltmain.sh
/m4
/missing
/model/linear-*.h
/model/stacking.h
/model/tree-*.h
/nsi/tarot.ico
/po/*.gmo
/po/Makefile
/po/Makefile.in
/po/Makefile.in.in
/po/Makevars.template
/po/POTFILES
/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
/po/tarot.pot
/pre-inst-env
/releases.xml
/snippet
/src/gettext.h
/src/libtarot/cards/check-cards
/src/libtarot/cards/gen-cards-def
/src/libtarot/cards/tarot/cards_defs.h
/src/libtarot/cards/tarot/cards_private_impl.h
/src/libtarot/gobject/tarot-enums-stamp
/src/libtarot/gobject/tarot-gobject.c
/src/libtarot/gobject/tarot-gobject.h
/src/libtarot/hand/check_hand
/src/libtarot/layout/check-layout
/src/libtarot/pkgconfig/libtarot-gobject.pc
/src/libtarot/pkgconfig/libtarot.pc
/src/libtarot/semantic-api/api.xml
/src/libtarot/test/dog-impossible
/src/libtarot/test/dog-impossible.c
/src/libtarot/test/empty-status
/src/libtarot/test/empty-status.c
/src/libtarot/test/no-slam
/src/libtarot/test/no-slam.c
/src/libtarot/xml/check_xml
/src/tarot-app/engine.c
/src/tarot-app/lexer.c
/src/tarot-app/main.c
/src/tarot-app/parser.c
/src/tarot-app/parser.h
/src/tarot-app/resources.c
/src/tarot-app/tarot
/src/tarot-app/tarot-en
/src/tarot-app/tarot-parser-stamp
/src/tarot-app/tarot-vala-stamp
/src/tarot-app/tarot_app.h
/stamp-h1
/tarot-*.*.*.tar.gz
/test-driver
/texinfo.tex
/tuneconfig.h
/src/tarot-app/ai.c
/src/tarot-app/card_painter.c
/src/tarot-app/card_painter_default.c
/src/tarot-app/gui/window.c
/src/tarot-app/gui/widget.c
/src/tarot-app/gui/card_view.c
/src/tarot-app/server.c
\ No newline at end of file
......@@ -23,7 +23,7 @@ include defaults.am
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = subdir-objects
dist_pkgdata_DATA += COPYING
EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html
EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html po/Rules-automake .gitignore
include desktop.am
include version-gen.am
......@@ -46,6 +46,7 @@ include nsi/Makefile.am
include debian/Makefile.am
include flatpak/Makefile.am
include model/Makefile.am
include git-check.am
AM_CPPFLAGS += \
-DLOCALEDIR="\"$(localedir)\"" \
......@@ -66,11 +67,19 @@ AM_CFLAGS += $(GOBJECT_CFLAGS)
AM_LDADD += $(GOBJECT_LIBS)
endif # WITH_GOBJECT
PRIO_1 = lib/libgnu.la
PRIO_2 = eu.planete_kraus.Tarot.appdata.xml.in releases.xml
PRIO_3 = src/libtarot/cards/tarot/cards_defs.h \
src/libtarot/cards/tarot/cards_private_impl.h \
$(dist_model_DATA:.model=.h) \
tuneconfig.h
PRIO_4 = src/libtarot/semantic-api/api.xml
PRIO_5 = src/tarot-app/tarot
.PHONY: safe
safe:
$(MAKE) $(AM_MAKEFLAGS) doc/org-stamp
$(MAKE) $(AM_MAKEFLAGS) $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot
$(MAKE) $(AM_MAKEFLAGS) doc/tarot-figures/example.png
$(MAKE) $(AM_MAKEFLAGS) doc/tarot-figures/example-tree.png
$(MAKE) $(AM_MAKEFLAGS) games/generated.xml
$(MAKE) $(AM_MAKEFLAGS) $(PRIO_1)
$(MAKE) $(AM_MAKEFLAGS) $(PRIO_2)
$(MAKE) $(AM_MAKEFLAGS) $(PRIO_3)
$(MAKE) $(AM_MAKEFLAGS) $(PRIO_4)
$(MAKE) $(AM_MAKEFLAGS) $(PRIO_5)
......@@ -22,31 +22,26 @@ EXTRA_DIST += \
%reldir%/eu.planete_kraus.Tarot.appdata.xsl \
%reldir%/eu.planete_kraus.Tarot.appdata.xml.in
MAINTAINERCLEANFILES += \
%reldir%/eu.planete_kraus.Tarot.appdata.xml.in \
%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in: releases.xml %reldir%/eu.planete_kraus.Tarot.appdata.xsl
$(XSLTPROC) $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xsl \
$(srcdir)/releases.xml \
| $(XMLLINT) --format - \
> $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in-t
@mv $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in-t $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in
> %reldir%/eu.planete_kraus.Tarot.appdata.xml.in-t
@mv %reldir%/eu.planete_kraus.Tarot.appdata.xml.in-t $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml: %reldir%/eu.planete_kraus.Tarot.appdata.xml.in
@cp $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(AM_V_GEN) for locale in $$(cat $(srcdir)/po/LINGUAS) ; \
do \
$(MSGFMT) --xml $(srcdir)/po/$$locale.po --template $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml \
-o $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
-o %reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
-l $$locale; \
mv $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
mv %reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml ; \
done
@grep '<!--Copyright' $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in \
>> $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
@sed 's|@largeiconsdir@|$(largeiconsdir)|g' \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml \
> $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t
@mv $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(APPSTREAM_UTIL) validate-strict $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(APPSTREAM_CLI) validate $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
......@@ -7,10 +7,9 @@
apt-get update
apt-get upgrade -y
apt-get install -y \
appstream-util \
appstream \
autoconf \
autoconf-archive \
autogen \
automake \
autopoint \
bison \
......@@ -52,6 +51,7 @@ apt-get install -y \
r-cran-glmnet \
r-cran-optparse \
texinfo \
texlive-full \
valac \
valgrind \
xsltproc
......@@ -59,17 +59,7 @@ apt-get install -y \
export $(dbus-launch)
SOURCE_TOP=$(pwd)
CLEAN_TOP=$(cd .. && pwd)/clean
mkdir -p ../clean
chmod -R ugo+w ../clean || exit 1
rm -rf ../clean || exit 1
mkdir -p ../clean || exit 1
rm -rf $SOURCE_TOP/dist || exit 1
cd $CLEAN_TOP
git clone $SOURCE_TOP . || exit 1
cd $SOURCE_TOP || exit 1
rm -rf ../tarot-*.tar.gz ../tarot-*/ tarot-*.tar.gz
sh autogen.sh VALAFLAGS="--target-glib=2.50" || exit 1
./configure \
......@@ -85,72 +75,7 @@ make -j 16 CFLAGS="$CFLAGS -Werror" safe || exit 1
make -j 16 CFLAGS="$CFLAGS -Werror" distcheck || exit 1
make -j 8 CFLAGS="$CFLAGS -Werror" check || exit 1
make -j 16 CFLAGS="$CFLAGS -Werror" install install-html || exit 1
make indent || exit 1
rm -rf ../../tarot-*.tar.gz ../../tarot-*/
cp tarot-*.tar.gz ../../ || exit 1
cd ../../ || exit 1
tar xf tarot-*.tar.gz || exit 1
cd tarot-* || exit 1
DIST_TOP=$(pwd)
cd $CLEAN_TOP || exit 1
OK="yes"
for source in $(find . -type f)
do
case $source in
*.po | *.pot)
echo "Ignoring PO file $source, as it has a date in it.";;
*.md)
echo "Ignoring Markdown file $source, as it may be non-reproducibly generated by org-mode.";;
*/.git/*);;
*)
if diff $source $DIST_TOP/$source
then
echo "$source: OK"
else
echo "ERROR: $source has been modified since check-in, or ignored from the distribution. Is it automatically generated? Did you forget to indent it? Did you forget to include it as distributed in Automake?"
OK="no"
fi;;
esac
done;
cd $DIST_TOP || exit 1
./configure && make maintainer-clean || exit 1
echo "Checking what files are maintainer-clean..."
for source in $(find . -type f)
do
case $source in
*.po | *.pot)
echo "Ignoring PO file $source, as it has a date in it.";;
./po/en@quot.header | ./po/en@boldquot.header | ./po/Rules-quot | ./po/remove-potcdate.sin | ./po/boldquot.sed | ./po/quot.sed | ./po/insert-header.sin | ./po/Makefile.in.in)
echo "Ignoring Gettext garbage $source.";;
./libopts/*)
echo "Ignoring embedded file $source, as it is not ours.";;
./.tarball-version)
echo "Ignoring .tarball-version.";;
./lib/* | ./snippet/*)
echo "Ignoring $source, some gnulib stuff.";;
./m4/*)
echo "Ignoring autoconf macro $source.";;
./git-version-gen | ./gitlog-to-changelog)
echo "Ignoring helper script $source.";;
./compile | ./depcomp | ./config.rpath | ./config.sub | ./texinfo.tex | ./ar-lib | ./INSTALL | ./missing | ./test-driver | ./ltmain.sh | ./aclocal.m4 | ./ChangeLog | ./config.h.in | ./config.guess | ./Makefile.in | ./configure | ./install-sh | ./ABOUT-NLS)
echo "Ignoring required automake script $source.";;
*)
if diff $source $CLEAN_TOP/$source
then
echo "$source: OK"
else
echo "ERROR: $source is not a maintainer-clean file, but it has been rebuilt or deleted since checkout. If this file has been generated, add it to MAINTAINERCLEANFILES."
OK="no"
fi;;
esac
done;
if test "$OK" = "no"
then
echo "Failure."
exit 1
fi
## Nice!
make -j 8 git-check || exit 1
cd $SOURCE_TOP || exit 1
mkdir -p $SOURCE_TOP/dist || exit 1
cp $SOURCE_TOP/.version \
......
......@@ -27,7 +27,6 @@ AM_PROG_AR
LT_INIT
AM_MISSING_PROG([INDENT], [indent])
AM_MISSING_PROG([EMACS], [emacs])
AM_MISSING_PROG([AUTOGEN], [autogen])
AC_ARG_ENABLE([valgrind], AS_HELP_STRING([--enable-valgrind=yes],
[Run the unit tests under valgrind (slow, incompatible with asan)]))
AS_IF([test "x$enable_valgrind" = "xyes"], [
......@@ -57,7 +56,7 @@ PKG_INSTALLDIR
AM_MISSING_PROG([FDP], [fdp])
AM_MISSING_PROG([HELP2MAN], [help2man])
AM_MISSING_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
AM_MISSING_PROG([APPSTREAM_UTIL], [appstream-util])
AM_MISSING_PROG([APPSTREAM_CLI], [appstreamcli])
AM_MISSING_PROG([MAKENSIS], [makensis])
AC_ARG_VAR([HOST_SYSROOT], [Where to steal the windows DLLs for gtk+ and friends. On Fedora it is /usr/x86_64-w64-mingw32/sys-root/mingw])
AC_CHECK_TOOL([WINDRES], [windres], [no])
......@@ -72,6 +71,8 @@ AS_IF([test "x$host_cpu" = "xx86_64"], [
AM_MISSING_PROG([FLATPAK], [flatpak])
AM_MISSING_PROG([FLATPAK_BUILDER], [flatpak-builder])
AC_ARG_VAR([FLATPAK_BUILDERFLAGS], [Additional flags to pass to flatpak-builder (such as --install, --gpg-sign=key...), but not --repo since we already build for the repo under tarot-flatpak in the build directory.])
AM_MISSING_PROG([GIT], [git])
AM_MISSING_PROG([DIFF], [diff])
# Checks for libraries.
gl_INIT
......@@ -134,6 +135,7 @@ AC_CONFIG_FILES([
pre-inst-env
eu.planete_kraus.Tarot.desktop
src/tarot-app/tarot-en
.dir-locals.el
], [chmod +x pre-inst-env])
AC_OUTPUT
......@@ -30,7 +30,7 @@ EXTRA_DIST += \
%reldir%/gen-changelog.xsl
MAINTAINERCLEANFILES += \
%reldir%/changelog
$(srcdir)/%reldir%/changelog
DEBFILES = \
$(PACKAGE)_$(VERSION)-1_$(DEBARCH).deb \
......
......@@ -17,7 +17,7 @@
# <http://www.gnu.org/licenses/>.
dist_man6_MANS += %reldir%/tarot.man
MAINTAINERCLEANFILES += %reldir%/tarot.man
MAINTAINERCLEANFILES += $(srcdir)/%reldir%/tarot.man
help2man_verbose = $(help2man_verbose_@AM_V@)
help2man_verbose_ = $(help2man_verbose_@AM_DEFAULT_V@)
......
......@@ -44,7 +44,7 @@ EXTRA_DIST += \
MAINTAINERCLEANFILES += \
$(srcdir)/%reldir%/tarot.texi \
$(TANGLED) \
%reldir%/org-stamp
$(srcdir)/%reldir%/org-stamp
.PHONY: tune
......@@ -58,6 +58,7 @@ $(srcdir)/%reldir%/org-stamp: %reldir%/tarot.org %reldir%/setup.el %reldir%/conv
--file %reldir%/tarot.org \
-f org-babel-tangle \
-f org-texinfo-export-to-texinfo
@rm -f $(srcdir)/%reldir%/Rplots.pdf
touch $(srcdir)/%reldir%/org-stamp
$(TANGLED) $(srcdir)/%reldir%/tarot.texi: $(srcdir)/%reldir%/org-stamp
......
......@@ -2378,25 +2378,6 @@ You may get a copy of the license at
:PROPERTIES:
:INDEX: fn
:END:
* Build system extension :noexport:
In order to export the manual, we define a utility script:
#+BEGIN_SRC shell :eval no :tangle ./generate-manual :shebang "#!/bin/sh" :noweb yes
# This script is supposed to be run from the root of the build
# directory
cp doc/tarot.org doc/tarot-full.org || exit 1
(cd doc && \
emacs \
--batch \
--eval "(defun package-version () \"<<el-package-version()>>\")" \
-l setup.el \
--file tarot-full.org \
-f org-texinfo-export-to-texinfo) \
|| exit 1
mv doc/tarot-full.texi doc/tarot.texi || exit 1
#+END_SRC
* File-local variables :noexport:
# Local Variables:
# mode: org
......
......@@ -24,9 +24,7 @@ dist_tarotfigures_DATA = \
%reldir%/tarot-figures/convergence-random.png \
%reldir%/tarot-figures/convergence-parameter.eps \
%reldir%/tarot-figures/convergence-agreed.eps \
%reldir%/tarot-figures/convergence-random.eps \
%reldir%/tarot-figures/example.png \
%reldir%/tarot-figures/example-tree.png
%reldir%/tarot-figures/convergence-random.eps
%canon_reldir%_tarot_TEXINFOS = \
%reldir%/fdl.texi
......@@ -12,7 +12,7 @@
<metadata_license>CC0-1.0</metadata_license>
<name>The Amazing Rules Of TAROT</name>
<summary>Play a game of Tarot against the artificial intelligence</summary>
<icon type="local">@largeiconsdir@/eu.planete_kraus.Tarot.png</icon>
<icon type="remote">https://framagit.org/play-tarot/tarot/raw/develop/icon/256x256/eu.planete_kraus.Tarot.png</icon>
<description>
<p>
Tarot is a popular card game, in which a strong player plays
......@@ -40,7 +40,35 @@
<developer_name>Vivien Kraus</developer_name>
<update_contact>vivien@planete_kraus.eu</update_contact>
<translation type="gettext">tarot</translation>
<content_rating type="oars-1.0" />
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
</component>
</xsl:template>
......
......@@ -17,7 +17,7 @@
# <http://www.gnu.org/licenses/>.
EXTRA_DIST += %reldir%/gen-manifest eu.planete_kraus.Tarot.json.in
MAINTAINERCLEANFILES += eu.planete_kraus.Tarot.json.in
MAINTAINERCLEANFILES += $(srcdir)/eu.planete_kraus.Tarot.json.in
CLEANFILES += manifest.json tarot-latest.flatpak
.PHONY: flatpak flatpak-bundle clean-flatpak
......@@ -33,7 +33,7 @@ bundle_verbose_0 = @echo " BUNDLE $@";
clean-local: clean-flatpak
eu.planete_kraus.Tarot.json.in: .version
$(AM_V_GEN) %reldir%/gen-manifest $(DIST_ARCHIVES) > $(srcdir)/eu.planete_kraus.Tarot.json.in
$(AM_V_GEN) $(srcdir)/%reldir%/gen-manifest $(DIST_ARCHIVES) > $(srcdir)/eu.planete_kraus.Tarot.json.in
flatpak: dist eu.planete_kraus.Tarot.json.in
@rm -rf flatpak-build-dir
......
......@@ -18,41 +18,6 @@
dist_games_DATA += %reldir%/example.xml
EXTRA_DIST += \
%reldir%/render_mcts_tree.xsl \
%reldir%/generated.xml \
doc/tarot-figures/example-tree.png \
doc/tarot-figures/example.png
%reldir%/render_mcts_tree.xsl
MAINTAINERCLEANFILES += \
%reldir%/generated.xml \
doc/tarot-figures/example-tree.png \
doc/tarot-figures/example.png
render_verbose = $(render_verbose_@AM_V@)
render_verbose_ = $(render_verbose_@AM_DEFAULT_V@)
render_verbose_0 = @echo " RENDER " $@;
tree_render_verbose = $(tree_render_verbose_@AM_V@)
tree_render_verbose_ = $(tree_render_verbose_@AM_DEFAULT_V@)
tree_render_verbose_0 = @echo " TREE " $@;
generator_verbose = $(generator_verbose_@AM_V@)
generator_verbose_ = $(generator_verbose_@AM_DEFAULT_V@)
generator_verbose_0 = @echo " GENERATE" $@;
$(srcdir)/doc/tarot-figures/example.png: %reldir%/example.xml
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot
@$(MKDIR_P) $(srcdir)/doc/tarot-figures
$(render_verbose) ./pre-inst-env tarot --render -i $(srcdir)/%reldir%/example.xml -o $(srcdir)/doc/tarot-figures/example.png
$(srcdir)/doc/tarot-figures/example-tree.png: %reldir%/example.xml
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot
@$(MKDIR_P) $(srcdir)/doc/tarot-figures
$(tree_render_verbose) ./pre-inst-env tarot --impute < $(srcdir)/%reldir%/example.xml \
| ./pre-inst-env tarot --mcts-tree \
| $(XSLTPROC) $(srcdir)/%reldir%/render_mcts_tree.xsl - \
| $(FDP) -Tpng -o $(srcdir)/doc/tarot-figures/example-tree.png
$(srcdir)/%reldir%/generated.xml:
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot
$(generator_verbose) ./pre-inst-env tarot -o $(srcdir)/%reldir%/generated.xml --generate=mcts
MAINTAINERCLEANFILES +=
......@@ -4,6 +4,7 @@ echo '<?xml version="1.0" encoding="utf-8"?>'
echo '<releases>'
for tag in $(git tag --sort=taggerdate | tac)
do
TAG_FILENAME=$(echo "$tag" | sed 's/\//_/g')
TAG_CHARS=$(echo "$tag" | wc -c)
TAG_HEADER=$(git tag -l -n $tag | tail -c +$TAG_CHARS | sed 's/\.[[:space:]]$//g')
TAG_DATE=$(git log -1 --format=%ai $tag)
......@@ -14,21 +15,21 @@ do
TAG_PROGRAM_VERSION=$(echo "$TAG_VERSION_FULL" | cut -d '/' -f 1)
TAG_LIBTOOL_VERSION=$(echo "$TAG_VERSION_FULL" | cut -d '/' -f 2)
echo "#+title: $TAG_HEADER" > tag.org
echo "#+date: $TAG_DATE" >> tag.org
echo "#+author: $TAG_AUTHOR" >> tag.org
echo "#+email: $TAG_EMAIL" >> tag.org
git tag -l -n999 $tag | tail -n +2 >> tag.org
echo "#+title: $TAG_HEADER" > "$TAG_FILENAME.org"
echo "#+date: $TAG_DATE" >> "$TAG_FILENAME.org"
echo "#+author: $TAG_AUTHOR" >> "$TAG_FILENAME.org"
echo "#+email: $TAG_EMAIL" >> "$TAG_FILENAME.org"
git tag -l -n999 $tag | tail -n +2 >> "$TAG_FILENAME.org"
emacs --batch --file tag.org --eval "(org-html-export-to-html nil nil nil t '())" || exit 1
emacs --batch --file "$TAG_FILENAME.org" --eval "(org-html-export-to-html nil nil nil t '())" || exit 1
echo " <release version=\"$(echo $TAG_PROGRAM_VERSION)\" libtool=\"$(echo $TAG_LIBTOOL_VERSION)\" date=\"$TAG_DATE\" deb-date=\"$TAG_DATE_DEB\" author=\"$TAG_AUTHOR\" email=\"$TAG_EMAIL\">"
echo " <summary>"
echo "$TAG_HEADER"
echo " </summary>"
echo " <description>"
cat tag.html
cat "$TAG_FILENAME.html"
echo " </description>"
echo " </release>"
rm tag.org tag.html
rm "$TAG_FILENAME.org" "$TAG_FILENAME.html"
done
echo '</releases>'
# git-check.am
#
# Copyright (C) 2019 Vivien Kraus <vivien@planete-kraus.eu>
#
# 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 3 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/>.
.PHONY: git-check
git_clone_verbose = $(git_clone_verbose_@AM_V@)
git_clone_verbose_ = $(git_clone_verbose_@AM_DEFAULT_V@)
git_clone_verbose_0 = @echo " GIT CLONE";
git-check:
@$(MKDIR_P) .gitcheck ; chmod -R u+w .gitcheck
@rm -rf .gitcheck
$(MKDIR_P) .gitcheck
$(git_clone_verbose) $(GIT) clone $(srcdir) .gitcheck/clean/
$(git_clone_verbose) $(GIT) clone $(srcdir) .gitcheck/source/
$(MKDIR_P) .gitcheck/build
(cd .gitcheck/source && ./autogen.sh)
(cd .gitcheck/build && ../../.gitcheck/source/configure VALAFLAGS="--target-glib=2.50")
$(MAKE) $(AM_MAKEFLAGS) -C .gitcheck/build safe
$(MAKE) $(AM_MAKEFLAGS) -C .gitcheck/build check distcheck
$(MAKE) $(AM_MAKEFLAGS) -C .gitcheck/build indent
$(MAKE) $(AM_MAKEFLAGS) distdir
(cd .gitcheck/clean \
&& for source in $$(find . -type f) ; \
do \
case $$source in \
*.md) \