Commit graph

8 commits

Author SHA1 Message Date
Patrick Ohly
c01fe2bf67 gen-autotools.sh: fixed ambiguous HEAD reference
"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.
2010-08-15 21:24:14 +02:00
Patrick Ohly
0735b8e875 gen-autotools.sh: make order of files deterministic (MBC #2586)
"find" reports files in a filesystem dependent order. Added "sort"
to make that order deterministic, which minimizes changes when
comparing source distribution archives.
2010-06-30 10:37:50 +02:00
Patrick Ohly
3508f8b5f0 removed dependency on --long and --exact 2010-03-16 08:14:29 +01:00
Patrick Ohly
b2e9409346 gen-autotools.sh: set versions suffix when code is not cleanly tagged
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.
2010-03-15 18:14:18 +01:00
Patrick Ohly
0944e3eda5 installation: templates now in $(datadir)/syncevolution/templates (MB #7808)
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.
2009-11-27 14:43:22 +01:00
Patrick Ohly
1c2e27a4b4 gen-autotools.sh: avoid GNU find -printf
Compilation on Mac OS X fails when using the GNU find specific
-printf command line option, so avoid it.
2009-11-04 11:12:05 +01:00
Patrick Ohly
2a3c735b43 LINGUAS: create automatically as part of autogen.sh/gen-autotools.sh
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.
2009-10-02 17:27:45 +02:00
Patrick Ohly
d54de67432 building: split out non-standard parts of autogen.sh into gen-autotools.sh
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.
2009-07-15 19:03:46 +02:00