source: git/make_release @ 0fd6750

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

Makefile.am,configure.in,doc/Makefile.am,make_release: Scrap the
"alternative manual formats" zip file - people will generally just
want one of them, so downloading several together isn't very useful.
Replace PostScript? version of manual with a PDF version (more
compact and more people will have software to read PDF). Don't
generate RTF format by default as PDF is more useful if you want
a formatted version to print.

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

  • Property mode set to 100755
File size: 1.7 KB
Line 
1#! /bin/sh
2
3set -e
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
13
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
21
22test ! -f Makefile || make distclean
23
24if test yes = "$rel" ; then
25   cp -u /usr/share/misc/config.guess .
26   cp -u /usr/share/misc/config.sub .
27fi
28
29autoreconf --force -i
30./configure CC=gcc CXX=g++
31if test yes = "$rel" ; then
32   export CFLAGS
33   export CXXFLAGS
34   # tell the preproceesor to be C89 - this makes it reject // comments
35# FIXME -Werror makes configure explode CFLAGS="-Werror -Wp,-std=c89"
36# FIXME   CXXFLAGS="-Werror"
37   CFLAGS="-Wp,-std=c89"
38   CXXFLAGS=
39   make distcheck
40   CFLAGS=
41   CXXFLAGS=
42else
43   make dist
44fi
45
46make distclean
47
48test -n "$build_platform" || build_platform=`sh config.guess`
49SAVE_PATH=$PATH
50if test -d /usr/i586-mingw32msvc/bin ; then
51  # debian mingw32 package
52  PATH=/usr/i586-mingw32msvc/bin:$PATH
53  CC=/usr/bin/i586-mingw32msvc-gcc
54  CXX=/usr/bin/i586-mingw32msvc-g++
55else
56  # variant of debian mingw32 package?
57  PATH=/usr/i386-mingw32msvc/bin:$PATH
58  CC=/usr/bin/i386-mingw32msvc-gcc
59  CXX=/usr/bin/i386-mingw32msvc-g++
60fi
61wxc=/usr/lib/wx/config/i586-mingw32msvc-msw-unicode-release-static-2.8
62# -Werror here causes AC_CHECK_FUNCS to fail.
63CFLAGS=
64CXXFLAGS='-fno-strict-aliasing -Werror'
65./configure --host=mingw32 --build="$build_platform" CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" WX_CONFIG="$wxc" LDFLAGS=-s
66make CFLAGS=-Werror
67make mingw_iss
68PATH=$SAVE_PATH
69
70make distclean
Note: See TracBrowser for help on using the repository browser.