source: git/make_release @ 0fd6750

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
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
RevLine 
[d7acd89]1#! /bin/sh
[ae1309f]2
[098acb1]3set -e
4
[27b8b59]5# flags to consider:
6# CFLAGS="-O2 -fomit-frame-pointer"
7# CXXFLAGS="-O2 -fno-rtti -fomit-frame-pointer"
[ae1309f]8rel=yes
[e66be9a]9if test x"$1" = x-t ; then
[ae1309f]10   rel=
[f30265a0]11   shift
[d7acd89]12fi
[dd7674d]13
[ae1309f]14if test x"$rel" = xyes ; then
[f542bda]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
[e66be9a]18      exit 1
19   fi
[fd51dc3]20fi
[0fd6750]21
22test ! -f Makefile || make distclean
[098acb1]23
[27b8b59]24if test yes = "$rel" ; then
[c5eded8]25   cp -u /usr/share/misc/config.guess .
26   cp -u /usr/share/misc/config.sub .
[bd7120b]27fi
[098acb1]28
[74dc997]29autoreconf --force -i
[098acb1]30./configure CC=gcc CXX=g++
[27b8b59]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=
[098acb1]39   make distcheck
[27b8b59]40   CFLAGS=
41   CXXFLAGS=
[f78ad72]42else
[098acb1]43   make dist
[e719df1]44fi
[098acb1]45
46make distclean
47
[0fd6750]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.