Commit c0ec382b authored by Vivien Kraus's avatar Vivien Kraus

Use git version

parent b979aa84
Pipeline #69741 passed with stages
in 7 minutes and 36 seconds
......@@ -16,139 +16,90 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
*.a
*.dirstamp
*.gcda
*.gcno
*.gmo
*.go
*.header
*.info
*.insert-header
*.la
*.lo
*.log
*.o
*.t2p
*.trs
# Please do not use git globs (*) here, since we would not be able to
# validate the ignored files (no, git check-ignore does not do the
# job)
*~
.deps
.dir-locals.el
.libs
ABOUT-NLS
AUTHORS
INSTALL
Makefile
Makefile.in
aclocal.m4
ar-lib
autom4te.cache
build.html
compile
config.guess
config.h
config.h.in
config.log
config.rpath
config.scm
config.status
config.sub
configure
depcomp
doc/tarot-tmp.org
doc/tarot.html
doc/tarot.info
doc/tarot.pdf
doc/tarot.texi
games/*.c
install-sh
lib
libtool
ltmain.sh
m4
mdate-sh
missing
po/Makefile.in.in
po/Makevars.template
po/POTFILES
po/Rules-quot
po/boldquot.sed
po/en@boldquot.po
po/en@quot.po
po/insert-header.sin
po/quot.sed
po/remove-potcdate.sed
po/remove-potcdate.sin
po/stamp-po
po/tarot.pot
public
site.bak
site.exp
src/.dirstamp
src/cards/cards.c
src/cards/check-cards
src/cards/tarot.c
src/cards/tarot.l
src/command/check-command
src/core/check_bid
src/core/check_card_set
src/core/check_composition
src/core/check_deal
src/core/check_do_deal
src/core/check_game_init
src/core/tarot/check_hand
src/gettext.h
src/guile/libtarot-guile.pc
src/lexer/check-lexer
src/lexer/tarot.c
src/liblibtarot.la
src/libtarot.pc
src/parser/check-parser
src/parser/tarot.c
src/program/cmdline.c
src/program/cmdline.h
src/program/tarot
src/program/tarot-bid.c
src/program/tarot-bid.h
src/program/tarot-call.c
src/program/tarot-call.h
src/program/tarot-deal.c
src/program/tarot-deal.h
src/program/tarot-decl.c
src/program/tarot-decl.h
src/program/tarot-discard.c
src/program/tarot-discard.h
src/program/tarot-dog.c
src/program/tarot-dog.h
src/program/tarot-handful.c
src/program/tarot-handful.h
src/program/tarot-help.c
src/program/tarot-help.h
src/program/tarot-license.c
src/program/tarot-license.h
src/program/tarot-new.c
src/program/tarot-new.h
src/program/tarot-play.c
src/program/tarot-play.h
src/program/tarot-setup.c
src/program/tarot-setup.h
src/program/tarot-status.c
src/program/tarot-status.h
src/program/tarot-version.c
src/program/tarot-version.h
src/program/tarot.6.gz
src/scm/tarot
src/scm/tarot-resource-compiler
src/status/check
stamp-h1
stamp-vti
tarot-*.tar.gz
tarot-devel
tarot-devel-coverage
tarot.log
tarot.sum
tarot.test
test-driver
test-suite.log
texinfo.tex
version.texi
\ No newline at end of file
/.version
/ABOUT-NLS
/INSTALL
/Makefile.in
/aclocal.m4
/ar-lib
/autom4te.cache
/compile
/config.guess
/config.h.in
/config.rpath
/config.sub
/configure
/depcomp
/doc/tarot-tmp.org
/doc/tarot.info
/doc/tarot.texi
/install-sh
/lib
/libtool
/ltmain.sh
/m4
/mdate-sh
/missing
/po/Makefile.in.in
/po/Makevars.template
/po/POTFILES
/po/Rules-quot
/po/boldquot.sed
/po/en@boldquot.gmo
/po/en@boldquot.header
/po/en@boldquot.po
/po/en@quot.gmo
/po/en@quot.header
/po/en@quot.po
/po/fr.gmo
/po/insert-header.sin
/po/quot.sed
/po/remove-potcdate.sed
/po/remove-potcdate.sin
/po/stamp-po
/po/tarot.pot
/snippet
/src/cards/cards.c
/src/cards/tarot.c
/src/cards/tarot.l
/src/lexer/tarot.c
/src/parser/tarot.c
/src/program/cmdline.c
/src/program/cmdline.h
/src/program/tarot-bid.c
/src/program/tarot-bid.h
/src/program/tarot-call.c
/src/program/tarot-call.h
/src/program/tarot-deal.c
/src/program/tarot-deal.h
/src/program/tarot-decl.c
/src/program/tarot-decl.h
/src/program/tarot-discard.c
/src/program/tarot-discard.h
/src/program/tarot-dog.c
/src/program/tarot-dog.h
/src/program/tarot-handful.c
/src/program/tarot-handful.h
/src/program/tarot-help.c
/src/program/tarot-help.h
/src/program/tarot-license.c
/src/program/tarot-license.h
/src/program/tarot-new.c
/src/program/tarot-new.h
/src/program/tarot-play.c
/src/program/tarot-play.h
/src/program/tarot-setup.c
/src/program/tarot-setup.h
/src/program/tarot-status.c
/src/program/tarot-status.h
/src/program/tarot-version.c
/src/program/tarot-version.h
/src/program/tarot.6.gz
/test-driver
/texinfo.tex
/version.texi
\ No newline at end of file
......@@ -8,7 +8,7 @@ stages:
distribute:
stage: dist
image: tarotbis/build:latest
script: "./ci-dist.sh"
script: "./ci/dist.sh"
artifacts:
paths:
- public
......@@ -16,7 +16,7 @@ distribute:
build:
stage: check
script: "./ci-build.sh"
script: "./ci/build.sh"
artifacts:
paths:
- public
......@@ -25,7 +25,7 @@ build:
mingw32-build:
stage: check
image: fedora:latest
script: "./ci-mingw32.sh"
script: "./ci/mingw32.sh"
artifacts:
paths:
- public
......@@ -34,7 +34,7 @@ mingw32-build:
mingw64-build:
stage: check
image: fedora:latest
script: "./ci-mingw64.sh"
script: "./ci/mingw64.sh"
artifacts:
paths:
- public
......@@ -42,7 +42,7 @@ mingw64-build:
pages:
stage: manual
script: "./ci-pages.sh"
script: "./ci/pages.sh"
artifacts:
paths:
- public
......
......@@ -39,26 +39,29 @@ dist_noinst_SCRIPTS = \
autogen.sh \
.git/hooks/pre-commit \
hooks/pre-commit.sh \
run-tarot.sh
run-tarot.sh \
build-aux/git-version-gen \
ci/dist.sh \
ci/build.sh \
ci/mingw32.sh \
ci/mingw64.sh \
ci/pages.sh
nodist_noinst_DATA =
ACLOCAL_AMFLAGS = -I m4 -I custom-m4
EXTRA_DIST = \
.gitignore \
hooks/ChangeLog \
ci-dist.sh \
ci-build.sh \
ci-mingw32.sh \
ci-mingw64.sh \
ci-pages.sh \
tarot.org \
setup.el \
AUTHORS.org \
.dir-locals.el.in \
.gitlab-ci.yml \
Dockerfile \
m4/gnulib-cache.m4
BUILT_SOURCES =
m4/gnulib-cache.m4 \
$(top_srcdir)/.version
BUILT_SOURCES = \
$(top_srcdir)/.version
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-asan=yes \
--enable-silent-rules=yes \
......@@ -111,9 +114,9 @@ AUTHORS: %reldir%/AUTHORS.org
$(org_verbose) ($(EMACS) \
--batch -q \
-l "$(srcdir)/setup.el" \
--file "$(srcdir)/tarot.org" \
--file "$(srcdir)/AUTHORS.org" \
-f org-ascii-export-to-ascii \
&& mv "$(srcdir)/tarot.txt" "$(srcdir)/AUTHORS")
&& mv "$(srcdir)/AUTHORS.txt" "$(srcdir)/AUTHORS")
githook_setup_verbose = $(githook_setup_verbose_@AM_V@)
githook_setup_verbose_ = $(githook_setup_verbose_@AM_DEFAULT_V@)
githook_setup_verbose_0 = @echo "ORG-EXPORT $@";
......@@ -123,3 +126,7 @@ githook_setup_verbose_0 = @echo "ORG-EXPORT $@";
(cp $(srcdir)/hooks/pre-commit.sh \
$(srcdir)/.git/hooks/pre-commit \
&& chmod ugo+x $(srcdir)/.git/hooks/pre-commit)
$(top_srcdir)/.version:
$(AM_V_GEN) echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
$(AM_V_GEN) echo $(VERSION) > $(distdir)/.tarball-version
......@@ -166,7 +166,7 @@ http://gugurumbe.frama.io/tarot/tarot-devel.tar.gz
You can even be more parallel than that, by running the recursive
targets depth-first in parallel, but this assumes that you know what
targets are recursive. Fortunately, /I/ have to knowfor the CI
pipeline, so have a look at `ci-dist.sh'.
pipeline, so have a look at `ci/dist.sh'.
,----
| #!/bin/sh
......@@ -191,7 +191,8 @@ http://gugurumbe.frama.io/tarot/tarot-devel.tar.gz
| # Now build the distribution.
| make -j 16 distcheck || exit 1
| mkdir public || exit 1
| cp tarot-devel.tar.gz public/ || exit 1
| cp tarot-*.tar.gz public/ || exit 1
| cp .version public/ || exit 1
`----
......
#!/bin/sh
# Print a version string.
scriptversion=2018-08-20.16; # UTC
# Copyright (C) 2007-2017 Free Software Foundation, Inc.
#
# 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/>.
# This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
# It may be run two ways:
# - from a git repository in which the "git describe" command below
# produces useful output (thus requiring at least one signed tag)
# - from a non-git-repo directory containing a .tarball-version file, which
# presumes this script is invoked like "./git-version-gen .tarball-version".
# In order to use intra-version strings in your project, you will need two
# separate generated version string files:
#
# .tarball-version - present only in a distribution tarball, and not in
# a checked-out repository. Created with contents that were learned at
# the last time autoconf was run, and used by git-version-gen. Must not
# be present in either $(srcdir) or $(builddir) for git-version-gen to
# give accurate answers during normal development with a checked out tree,
# but must be present in a tarball when there is no version control system.
# Therefore, it cannot be used in any dependencies. GNUmakefile has
# hooks to force a reconfigure at distribution time to get the value
# correct, without penalizing normal development with extra reconfigures.
#
# .version - present in a checked-out repository and in a distribution
# tarball. Usable in dependencies, particularly for files that don't
# want to depend on config.h but do want to track version changes.
# Delete this file prior to any autoconf run where you want to rebuild
# files to pick up a version string change; and leave it stale to
# minimize rebuild time after unrelated changes to configure sources.
#
# As with any generated file in a VC'd directory, you should add
# /.version to .gitignore, so that you don't accidentally commit it.
# .tarball-version is never generated in a VC'd directory, so needn't
# be listed there.
#
# Use the following line in your configure.ac, so that $(VERSION) will
# automatically be up-to-date each time configure is run (and note that
# since configure.ac no longer includes a version string, Makefile rules
# should not depend on configure.ac for version updates).
#
# AC_INIT([GNU project],
# m4_esyscmd([build-aux/git-version-gen .tarball-version]),
# [bug-project@example])
#
# Then use the following lines in your Makefile.am, so that .version
# will be present for dependencies, and so that .version and
# .tarball-version will exist in distribution tarballs.
#
# EXTRA_DIST = $(top_srcdir)/.version
# BUILT_SOURCES = $(top_srcdir)/.version
# $(top_srcdir)/.version:
# echo $(VERSION) > $@-t && mv $@-t $@
# dist-hook:
# echo $(VERSION) > $(distdir)/.tarball-version
me=$0
version="git-version-gen $scriptversion
Copyright 2011 Free Software Foundation, Inc.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING."
usage="\
Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT]
Print a version string.
Options:
--prefix PREFIX prefix of git tags (default 'v')
--fallback VERSION
fallback version to use if \"git --version\" fails
--help display this help and exit
--version output version information and exit
Running without arguments will suffice in most cases."
prefix=v
fallback=
while test $# -gt 0; do
case $1 in
--help) echo "$usage"; exit 0;;
--version) echo "$version"; exit 0;;
--prefix) shift; prefix=${1?};;
--fallback) shift; fallback=${1?};;
-*)
echo "$0: Unknown option '$1'." >&2
echo "$0: Try '--help' for more information." >&2
exit 1;;
*)
if test "x$tarball_version_file" = x; then
tarball_version_file="$1"
elif test "x$tag_sed_script" = x; then
tag_sed_script="$1"
else
echo "$0: extra non-option argument '$1'." >&2
exit 1
fi;;
esac
shift
done
if test "x$tarball_version_file" = x; then
echo "$usage"
exit 1
fi
tag_sed_script="${tag_sed_script:-s/x/x/}"
nl='
'
# Avoid meddling by environment variable of the same name.
v=
v_from_git=
# First see if there is a tarball-only version file.
# then try "git describe", then default.
if test -f $tarball_version_file
then
v=`cat $tarball_version_file` || v=
case $v in
*$nl*) v= ;; # reject multi-line output
[0-9]*) ;;
*) v= ;;
esac
test "x$v" = x \
&& echo "$0: WARNING: $tarball_version_file is missing or damaged" 1>&2
fi
if test "x$v" != x
then
: # use $v
# Otherwise, if there is at least one git commit involving the working
# directory, and "git describe" output looks sensible, use that to
# derive a version string.
elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
&& v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
|| git describe --abbrev=4 HEAD 2>/dev/null` \
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
&& case $v in
$prefix[0-9]*) ;;
*) (exit 1) ;;
esac
then
# Is this a new git that lists number of commits since the last
# tag or the previous older version that did not?
# Newer: v6.10-77-g0f8faeb
# Older: v6.10-g0f8faeb
case $v in
*-*-*) : git describe is okay three part flavor ;;
*-*)
: git describe is older two part flavor
# Recreate the number of commits and rewrite such that the
# result is the same as if we were using the newer version
# of git describe.
vtag=`echo "$v" | sed 's/-.*//'`
commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
|| { commit_list=failed;
echo "$0: WARNING: git rev-list failed" 1>&2; }
numcommits=`echo "$commit_list" | wc -l`
v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
test "$commit_list" = failed && v=UNKNOWN
;;
esac
# Change the first '-' to a '.', so version-comparing tools work properly.
# Remove the "g" in git describe's output string, to save a byte.
v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
v_from_git=1
elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
v=UNKNOWN
else
v=$fallback
fi
v=`echo "$v" |sed "s/^$prefix//"`
# Test whether to append the "-dirty" suffix only if the version
# string we're using came from git. I.e., skip the test if it's "UNKNOWN"
# or if it came from .tarball-version.
if test "x$v_from_git" != x; then
# Don't declare a version "dirty" merely because a timestamp has changed.
git update-index --refresh > /dev/null 2>&1
dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=
case "$dirty" in
'') ;;
*) # Append the suffix only if there isn't one already.
case $v in
*-dirty) ;;
*) v="$v-dirty" ;;
esac ;;
esac
fi
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
printf %s "$v"
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
#!/bin/sh
yum install -y mingw32-gcc mingw32-readline make zip
cp public/tarot-devel.tar.gz . || exit 1
tar xf tarot-devel.tar.gz || exit 1
mkdir tarot-devel-mingw32 || exit 1
mkdir build || exit 1
cd build/
../tarot-devel/configure CFLAGS="-Wall -Wextra -g" \
CPPFLAGS="-I/usr/i686-w64-mingw32/sys-root/mingw/include" \
LDFLAGS="-L/usr/i686-w64-mingw32/sys-root/mingw/lib" \
YFLAGS="--report=all" \
--host=i686-w64-mingw32 \
--prefix="/usr" \
--enable-silent-rules=yes \
|| (cat config.log; exit 1)
make -j 16 DESTDIR="$PWD/../tarot-devel-mingw32" install || exit 1
cd ..
mkdir -p tarot-devel-mingw32/usr/bin || exit 1
cp /usr/i686-w64-mingw32/sys-root/mingw/bin/*.dll tarot-devel-mingw32/usr/bin || exit 1
zip -r tarot-devel-mingw32.zip tarot-devel-mingw32 || exit 1
mv tarot-devel-mingw32.zip public/ || exit 1
#!/bin/sh
VERSION=$(cat public/.version)
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends build-essential libreadline-dev libunistring-dev check valgrind
cp public/tarot-devel.tar.gz . || exit 1
tar xf tarot-devel.tar.gz || exit 1
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir prefix || exit 1
mkdir build || exit 1
cd build/
../tarot-devel/configure CFLAGS="-Wall -Wextra -g -O0" \
YFLAGS="--report=all" \
--prefix="$PWD/../prefix" \
--enable-silent-rules=yes \
cd build/ || exit 1
../tarot-$VERSION/configure CFLAGS="-Wall -Wextra -g -O0" \
YFLAGS="--report=all" \
--prefix="$PWD/../prefix" \
--enable-silent-rules=yes \
|| (cat config.log; exit 1)
make -j 16 TESTS_ENVIRONMENT="valgrind --tool=memcheck" check || exit 1
echo "$(date): tests passed" > ../public/tests-passed.txt
......@@ -20,4 +20,5 @@ make -j 16 src/program/tarot || exit 1
# Now build the distribution.
make -j 16 distcheck || exit 1
mkdir public || exit 1
cp tarot-devel.tar.gz public/ || exit 1
cp tarot-*.tar.gz public/ || exit 1
cp .version public/ || exit 1
#!/bin/sh
VERSION=$(cat public/.version)
yum install -y mingw32-gcc mingw32-readline make zip
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir tarot-$VERSION-mingw32 || exit 1
mkdir build || exit 1
cd build/
../tarot-$VERSION/configure CFLAGS="-Wall -Wextra -g" \
CPPFLAGS="-I/usr/i686-w64-mingw32/sys-root/mingw/include" \
LDFLAGS="-L/usr/i686-w64-mingw32/sys-root/mingw/lib" \
YFLAGS="--report=all" \
--host=i686-w64-mingw32 \
--prefix="/usr" \
--enable-silent-rules=yes \
|| (cat config.log; exit 1)
make -j 16 DESTDIR="$PWD/../tarot-$VERSION-mingw32" install || exit 1
cd ..
mkdir -p tarot-$VERSION-mingw32/usr/bin || exit 1
cp /usr/i686-w64-mingw32/sys-root/mingw/bin/*.dll tarot-$VERSION-mingw32/usr/bin || exit 1
zip -r tarot-$VERSION-mingw32.zip tarot-$VERSION-mingw32 || exit 1
mv tarot-$VERSION-mingw32.zip public/ || exit 1
#!/bin/sh
VERSION=$(cat public/.version)
yum install -y mingw64-gcc mingw64-readline make zip
cp public/tarot-devel.tar.gz . || exit 1
tar xf tarot-devel.tar.gz || exit 1
mkdir tarot-devel-mingw64 || exit 1
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir tarot-$VERSION-mingw64 || exit 1
mkdir build || exit 1
cd build/
../tarot-devel/configure CFLAGS="-Wall -Wextra -g" \
../tarot-$VERSION/configure CFLAGS="-Wall -Wextra -g" \
CPPFLAGS="-I/usr/x86_64-w64-mingw32/sys-root/mingw/include" \
LDFLAGS="-L/usr/x86_64-w64-mingw32/sys-root/mingw/lib" \
YFLAGS="--report=all" \
......@@ -14,9 +16,9 @@ cd build/
--prefix="/usr" \
--enable-silent-rules=yes \
|| (cat config.log; exit 1)
make -j 16 DESTDIR="$PWD/../tarot-devel-mingw64" install || exit 1
make -j 16 DESTDIR="$PWD/../tarot-$VERSION-mingw64" install || exit 1
cd ..
mkdir -p tarot-devel-mingw64/usr/bin || exit 1
cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll tarot-devel-mingw64/usr/bin || exit 1
zip -r tarot-devel-mingw64.zip tarot-devel-mingw64 || exit 1
mv tarot-devel-mingw64.zip public/ || exit 1
mkdir -p tarot-$VERSION-mingw64/usr/bin || exit 1
cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll tarot-$VERSION-mingw64/usr/bin || exit 1
zip -r tarot-$VERSION-mingw64.zip tarot-$VERSION-mingw64 || exit 1
mv tarot-$VERSION-mingw64.zip public/ || exit 1
#!/bin/sh
VERSION=$(cat public/.version)
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends build-essential libreadline-dev libunistring-dev texinfo
cp public/tarot-devel.tar.gz . || exit 1
tar xf tarot-devel.tar.gz || exit 1
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir build || exit 1
cd build/
../tarot-devel/configure \
--prefix="$PWD/../public" \
--enable-silent-rules=yes \
../tarot-$VERSION/configure \
--prefix="$PWD/../public" \
--enable-silent-rules=yes \
|| (cat config.log; exit 1)
make -j 16 install-html || exit 1
......@@ -15,7 +15,9 @@ dnl along with this program. If not, see
dnl <http://www.gnu.org/licenses/>.
AC_PREREQ([2.69])
AC_INIT([tarot], [devel], [vivien@planete-kraus.eu])
AC_INIT([tarot],
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
[vivien@planete-kraus.eu])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_MACRO_DIRS([custom-m4])
......
......@@ -27,9 +27,9 @@ EXTRA_DIST += \
%reldir%/ChangeLog \
%reldir%/tarot.org
%reldir%/tarot.texi: %reldir%/tarot.org configure.ac
%reldir%/tarot.texi: %reldir%/tarot.org .version
$(AM_V_GEN) (cd $(srcdir)/%reldir% && \
cat tarot.org | sed "s/@VERSION@/$(VERSION)/g" > tarot-tmp.org && \
cat tarot.org | sed "s/@VERSION@/$(cat .version)/g" > tarot-tmp.org && \
yes yes | $(EMACS) --batch -q \
--file tarot-tmp.org \
--eval "(require 'ox-texinfo)" \
......
......@@ -28,23 +28,20 @@ make -j 16 TESTS_ENVIRONMENT="valgrind --tool=memcheck" check \
make -j 16 distcheck || exit 1
cd "$tmpdir/original"
for f in $(find . -type f) ; do
for f in $(find . -type f | sed 's/^\.//g') ; do
case $f in
*.po|*.pot)
echo "Ignoring the POT file $f.";;
*.md)
echo "Ignoring the Markdown file $f.";;
*)
echo "Checking that $f is not ignored..."
grep "$f" .gitignore && exit 1
grep "$f" ../rebuilt/.gitignore && exit 1
echo "Checking that $f is distributed..."
for archive in $tmpdir/rebuilt/tarot-*.tar.gz
do
(tar tf $archive | grep "$f") || exit 1
done
echo "Comparing $f..."
diff $f ../rebuilt/$f || exit 1;;
diff .$f ../rebuilt/$f || exit 1;;
esac