"git show-ref HEAD" prints all refs containing HEAD. Sometimes there
were more than one. What we want is .git/HEAD, which "show-ref" seems
to know nothing about ("git show-ref --verify HEAD" fails).
Fixed by using the content of ".git/HEAD". Links are resolved by
removing the "ref: " prefix in it.
"find" reports files in a filesystem dependent order. Added "sort"
to make that order deterministic, which minimizes changes when
comparing source distribution archives.
This patch is meant to catch the following problems in nightly builds:
- changes were made on the build machine without committing them
- "master" is checked out and happens to be more recent than the
latest tag (development snapshots are not tagged, translations
are committed to master by others)
- the Synthesis source was not tagged or is unclean
If any of the checks fails, +<date>+SE+<hash>[+unclean]+SYSYNC+<hash>[+unclean]
is appended to the version in the generated "configure.in" script, for
SyncEvolution (SE) and libsynthesis (SYSYNC).
The check of the tag is based on the assumption that dots in the
configure version were replaced with hyphens in the tag. Extra hyphens
in the tag may be used. "syncevolution" must be part of the tag, in
both SyncEvolution and libsynthesis. So for a version 1.0beta1, the
corresponding tags are syncevolution-1-0-beta-1 in SyncEvolution and
<something>+syncevolution-1-0-beta-1 in libsynthesis.
The previous location was /usr/etc/syncevolution. It should have been
/etc/syncevolution in our debs, with proper declaration as system
config files. The intention was that system admins can add or modify
templates.
Not particularly likely, so now template files are only searched in
/usr/share/syncevolution/templates (or whatever was chosen with
configure --datadir).
Also added a README to that directory, warning that copying these
files will lead to incomplete configs. Each main config.ini carries
a similar comment, for those who miss the README.
Manually updating the LINGUAS file is error prone because new
translations can be added at any time via translate.moblin.org.
Better create the file automatically on each build/release.
Build systems like OpenEmbedded/Poky ignore out autogen.sh. This is
problematic when building from git because configure.in and Makefile.am
need to be created after checkout. The new gen-autotools.sh does that,
which hopefully can be used by OpenEmbedded/Poky.