source: git/make_release @ 98fbcf6

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

Makefile.am,make_release: I can't persuade rpmbuild to work sanely,
and people can just as easily build binary RPMs from the source
tarball as from the srpm, so just remove the rpm target from the
makefile and code which uses it from make_release - it's less to
have to maintain too.

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

  • Property mode set to 100755
File size: 2.0 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
13mk=${*:-"src doc mingw"}
14
15if test x"$rel" = xyes ; then
16   # Check everything is checked into SVN.
17   if svn st | grep -v '^?' | grep . > /dev/null 2> /dev/null ; then
18      echo There are changes not checked into SVN - please rectify
19      exit 1
20   fi
21fi
22if test -f Makefile ; then
23   if ! make distclean ; then
24      echo make distclean failed
25      exit 1
26   fi
27fi
28
29if test yes = "$rel" ; then
30   cp -u /usr/share/misc/config.guess .
31   cp -u /usr/share/misc/config.sub .
32fi
33
34autoreconf --force -i
35./configure CC=gcc CXX=g++
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   make distcheck
45   CFLAGS=
46   CXXFLAGS=
47else
48   make dist
49fi
50
51case $mk in
52  *doc*)
53    make dos_doc_exe ;;
54esac
55
56make distclean
57
58case $mk in
59  *mingw*)
60    test -n "$build_platform" || build_platform=`sh config.guess`
61    SAVE_PATH=$PATH
62    if test -d /usr/i586-mingw32msvc/bin ; then
63      # debian mingw32 package
64      PATH=/usr/i586-mingw32msvc/bin:$PATH
65      CC=/usr/bin/i586-mingw32msvc-gcc
66      CXX=/usr/bin/i586-mingw32msvc-g++
67    else
68      # variant of debian mingw32 package?
69      PATH=/usr/i386-mingw32msvc/bin:$PATH
70      CC=/usr/bin/i386-mingw32msvc-gcc
71      CXX=/usr/bin/i386-mingw32msvc-g++
72    fi
73    wxc=/usr/lib/wx/config/i586-mingw32msvc-msw-unicode-release-static-2.8
74    # -Werror here causes AC_CHECK_FUNCS to fail.
75    CFLAGS=
76    CXXFLAGS='-fno-strict-aliasing -Werror'
77    ./configure --host=mingw32 --build="$build_platform" CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" WX_CONFIG="$wxc" LDFLAGS=-s
78    make CFLAGS=-Werror
79    make mingw_iss
80    make distclean
81    PATH=$SAVE_PATH
82    ;;
83esac
Note: See TracBrowser for help on using the repository browser.