syncevolution/autogen.sh
Patrick Ohly fa2e0c41c9 configuration: added support for configuration templates in /etc and server icons
The server config.ini files and icon.[svg|png] in src/default will be installed
in /etc/default/syncevolution. All configurations found there extend and/or
override the builtin templates. The advantage is that file-based templates
can have icons and that templates can be added/modified without recompiling
SyncEvolution.

This meta information is now part of EvolutionSyncConfig:
- getWebURL() returns a URL with further information; this
  replaces the hard-coded URL string that was previously
  returned as comment for templates in the ServerList
- getIconURI() currently returns absolute file paths to
  an icon file (example: icon.png for ScheduleWorld). The
  content and exact URI may vary, depending on how system
  administrators or distributions configure SyncEvolution.
  If possible, callers should be able to handle http://
  and other URI access methods.
2009-04-07 20:33:18 +02:00

34 lines
1.1 KiB
Bash
Executable file

#!/bin/sh
set -e
# generate configure.in from main configure-*.in pieces
# and all backend configure-sub.in pieces
rm -f configure.in
cat configure-pre.in >>configure.in
BACKENDS=
SUBS=
for sub in src/backends/*/configure-sub.in; do
BACKENDS="$BACKENDS `dirname $sub | sed -e 's;^src/;;'`"
SUBS="$SUBS $sub"
echo "# vvvvvvvvvvvvvv $sub vvvvvvvvvvvvvv" >>configure.in
cat $sub >>configure.in
echo "AC_CONFIG_FILES(`echo $sub | sed -e s/configure-sub.in/Makefile/`)" >>configure.in
echo "# ^^^^^^^^^^^^^^ $sub ^^^^^^^^^^^^^^" >>configure.in
echo >>configure.in
done
cat configure-post.in >>configure.in
sed -e "s;@BACKEND_REGISTRIES@;`echo src/backends/*/*Register.cpp | sed -e s%src/%%g`;" \
-e "s;@BACKENDS@;$BACKENDS;" \
-e "s;@TEMPLATE_FILES@;`cd src && find default/syncevolution -type f \( -name '*.png' -o -name '*.svg' -o -name '*.ini' \) -printf '%p '`;" \
src/Makefile-gen.am >src/Makefile.am
sed -e "s;@CONFIG_SUBS@;$SUBS;" \
Makefile-gen.am >Makefile.am
libtoolize -c
aclocal -Im4
autoheader
automake -a -c -Wno-portability
autoconf