source: git/make_release.in @ 5a0eabd

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 5a0eabd was 5a0eabd, checked in by Olly Betts <olly@…>, 14 years ago

Makefile.am,xvfb-run: We no longer need an X display to run ISCC
under Wine, so just run wine directly and removed version of
Debian's xvfb-run script.
make_release.in: Pass variables to configure on the command line
rather than in the enviornment. Running "make distcheck" no longer
fails extend.tst, so remove comment about that. Use case rather
than expr to check what we've been asked to build. Update to use
unicode wx-config script for wxmsw. The wxmsw build spews warnings
about aliasing issues, so turn on -fno-strict-aliasing to avoid any
potential bugs from that. Enable -Werror for the wxmsw build.
Makefile.am: Update list of wxstd.mo files we package for wxmsw
(add pt and sk) and where we copy them from. Copy the unofficial
InnoSetup? i18n files (.isl) from lib.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3388 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100755
File size: 2.8 KB
Line 
1#! /bin/sh
2
3VERSION="@VERSION@"
4
5# flags to consider:
6# CFLAGS="-O2 -fomit-frame-pointer"
7# CXXFLAGS="-O2 -fno-rtti -fomit-frame-pointer"
8rel=yes
9if test x"$1" = x-t ; then
10   rel=
11   shift
12fi
13mk=${@-src rpm doc mingw}
14if test x"$rel" = xyes ; then
15   # Check everything is checked into SVN.
16   if svn st | grep -v '^?' | grep . > /dev/null 2> /dev/null ; then
17      echo There are changes not checked into SVN - please rectify
18      exit 1
19   fi
20fi
21if test -f Makefile ; then
22   if ! make distclean ; then
23      echo make distclean failed
24      exit 1
25   fi
26fi
27if test yes = "$rel" ; then
28   cp -u /usr/share/misc/config.guess .
29   cp -u /usr/share/misc/config.sub .
30fi
31autoreconf --force -i
32if ! ./configure CC=gcc CXX=g++ ; then
33   echo configure failed
34   exit 1
35fi
36if test yes = "$rel" ; then
37   export CFLAGS
38   export CXXFLAGS
39   # tell the preproceesor to be C89 - this makes it reject // comments
40# FIXME -Werror makes configure explode CFLAGS="-Werror -Wp,-std=c89"
41# FIXME   CXXFLAGS="-Werror"
42   CFLAGS="-Wp,-std=c89"
43   CXXFLAGS=
44   if ! make distcheck ; then
45      echo make distcheck failed
46      exit 1
47   fi
48   CFLAGS=
49   CXXFLAGS=
50else
51   if ! make dist ; then
52      echo make dist failed
53      exit 1
54   fi
55fi
56if test x"$rel" = xyes ; then
57  case $mk in
58  *rpm*)
59    if rpmbuild --version > /dev/null 2> /dev/null ; then
60      if ! make rpm ; then
61        echo make rpm failed
62        exit 1
63      fi
64    else
65      echo rpmbuild not installed - skipping rpm generation
66    fi
67    ;;
68  esac
69  case $mk in
70  *doc*)
71    if ! make dos_doc_exe ; then
72      echo make dos_doc_exe failed
73      exit 1
74    fi
75    ;;
76  esac
77fi
78if ! make distclean ; then
79   echo make distclean failed
80   exit 1
81fi
82case $mk in
83  *mingw*)
84    test -n "$build_platform" || build_platform=`sh config.guess`
85    SAVE_PATH="$PATH"
86    if test -d /usr/i586-mingw32msvc/bin ; then
87      # debian mingw32 package
88      PATH=/usr/i586-mingw32msvc/bin:$PATH
89      CC=/usr/bin/i586-mingw32msvc-gcc
90      CXX=/usr/bin/i586-mingw32msvc-g++
91    else
92      # variant of debian mingw32 package?
93      PATH=/usr/i386-mingw32msvc/bin:$PATH
94      CC=/usr/bin/i386-mingw32msvc-gcc
95      CXX=/usr/bin/i386-mingw32msvc-g++
96    fi
97    wxc=/usr/lib/wx/config/i586-mingw32msvc-msw-unicode-release-static-2.8
98    # -Werror here causes AC_CHECK_FUNCS to fail.
99    CFLAGS=
100    CXXFLAGS='-fno-strict-aliasing -Werror'
101    if ! ./configure --host=mingw32 --build="$build_platform" CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" WX_CONFIG="$wxc" LDFLAGS=-s ; then
102      echo mingw configure failed
103      exit 1
104    fi
105    if ! make CFLAGS=-Werror ; then
106      echo mingw make failed
107      exit 1
108    fi
109    if ! make mingw_iss ; then
110      echo mingw make mingw_iss failed
111      exit 1
112    fi
113    if ! make distclean ; then
114      echo make distclean failed
115      exit 1
116    fi
117    PATH="$SAVE_PATH"
118    ;;
119esac
Note: See TracBrowser for help on using the repository browser.