~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to make-dist.sh

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
MAKE=make
 
4
 
 
5
UIM_REPOSITORY="http://uim.googlecode.com/svn"
 
6
SSCM_REPOSITORY="${UIM_REPOSITORY}/sigscheme-trunk"
 
7
LIBGCROOTS_REPOSITORY="${UIM_REPOSITORY}/libgcroots-trunk"
 
8
TAGS_REPOSITORY="${UIM_REPOSITORY}/tags"
 
9
#SSCM_URL="${SSCM_REPOSITORY}"
 
10
SSCM_URL="${TAGS_REPOSITORY}/sigscheme-0.8.3"
 
11
#LIBGCROOTS_URL="${LIBGCROOTS_REPOSITORY}"
 
12
LIBGCROOTS_URL="${TAGS_REPOSITORY}/libgcroots-0.2.1"
 
13
RELEASE_SUFFIX=""
 
14
 
 
15
CONF_COMMON="--enable-maintainer-mode --disable-warnings-into-error"
 
16
CONF_NONE="$CONF_COMMON --disable-debug --disable-fep --disable-emacs --disable-gnome-applet --disable-kde-applet --disable-pref --disable-dict --without-anthy --without-canna --without-mana --without-prime --without-m17nlib --without-scim --without-gtk2 --without-gnome2 --without-qt --without-qt-immodule --disable-compat-scm --without-eb --without-libedit"
 
17
CONF_DEFAULT="$CONF_COMMON"
 
18
# --without-scim since it is broken
 
19
# FIXME: hardcoded --with-eb-conf
 
20
CONF_FULL="$CONF_COMMON --enable-debug --enable-fep --enable-emacs --enable-gnome-applet --enable-kde-applet --enable-pref --enable-dict --enable-notify --with-anthy --with-canna --with-wnn --with-sj3 --with-mana --with-prime --with-m17nlib --without-scim --with-gtk2 --with-gnome2 --with-qt --with-qt-immodule --enable-compat-scm --with-eb --with-eb-conf=/etc/eb.conf --with-libedit"
 
21
 
 
22
 
 
23
svn export $SSCM_URL sigscheme
 
24
svn export $LIBGCROOTS_URL sigscheme/libgcroots
 
25
(cd sigscheme/libgcroots && ./autogen.sh) \
 
26
 && (cd sigscheme && ./autogen.sh) \
 
27
 && ./autogen.sh \
 
28
|| { echo 'autogen failed.' && exit 1; }
 
29
 
 
30
if test -n "$RELEASE_SUFFIX"; then
 
31
    ed Makefile.in <<EOT
 
32
/^distdir =
 
33
d
 
34
i
 
35
RELEASE_SUFFIX = ${RELEASE_SUFFIX}
 
36
#distdir = \$(PACKAGE)-\$(VERSION)
 
37
distdir = \$(PACKAGE)-\$(VERSION)\$(RELEASE_SUFFIX)
 
38
.
 
39
wq
 
40
EOT
 
41
fi
 
42
 
 
43
for conf_args in "$CONF_NONE" "$CONF_DEFAULT" "$CONF_FULL"; do
 
44
    echo "configure $conf_args"
 
45
    ./configure $conf_args && $MAKE distcheck sum \
 
46
      || { echo 'make distcheck failed'; exit 1; }
 
47
done