RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
|
Last change
on this file since 0fd6750 was
0fd6750,
checked in by Olly Betts <olly@…>, 16 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
|
| Rev | Line | |
|---|
| [d7acd89] | 1 | #! /bin/sh |
|---|
| [ae1309f] | 2 | |
|---|
| [098acb1] | 3 | set -e |
|---|
| 4 | |
|---|
| [27b8b59] | 5 | # flags to consider: |
|---|
| 6 | # CFLAGS="-O2 -fomit-frame-pointer" |
|---|
| 7 | # CXXFLAGS="-O2 -fno-rtti -fomit-frame-pointer" |
|---|
| [ae1309f] | 8 | rel=yes |
|---|
| [e66be9a] | 9 | if test x"$1" = x-t ; then |
|---|
| [ae1309f] | 10 | rel= |
|---|
| [f30265a0] | 11 | shift |
|---|
| [d7acd89] | 12 | fi |
|---|
| [dd7674d] | 13 | |
|---|
| [ae1309f] | 14 | if 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] | 20 | fi |
|---|
| [0fd6750] | 21 | |
|---|
| 22 | test ! -f Makefile || make distclean |
|---|
| [098acb1] | 23 | |
|---|
| [27b8b59] | 24 | if test yes = "$rel" ; then |
|---|
| [c5eded8] | 25 | cp -u /usr/share/misc/config.guess . |
|---|
| 26 | cp -u /usr/share/misc/config.sub . |
|---|
| [bd7120b] | 27 | fi |
|---|
| [098acb1] | 28 | |
|---|
| [74dc997] | 29 | autoreconf --force -i |
|---|
| [098acb1] | 30 | ./configure CC=gcc CXX=g++ |
|---|
| [27b8b59] | 31 | if 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] | 42 | else |
|---|
| [098acb1] | 43 | make dist |
|---|
| [e719df1] | 44 | fi |
|---|
| [098acb1] | 45 | |
|---|
| 46 | make distclean |
|---|
| 47 | |
|---|
| [0fd6750] | 48 | test -n "$build_platform" || build_platform=`sh config.guess` |
|---|
| 49 | SAVE_PATH=$PATH |
|---|
| 50 | if 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++ |
|---|
| 55 | else |
|---|
| 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++ |
|---|
| 60 | fi |
|---|
| 61 | wxc=/usr/lib/wx/config/i586-mingw32msvc-msw-unicode-release-static-2.8 |
|---|
| 62 | # -Werror here causes AC_CHECK_FUNCS to fail. |
|---|
| 63 | CFLAGS= |
|---|
| 64 | CXXFLAGS='-fno-strict-aliasing -Werror' |
|---|
| 65 | ./configure --host=mingw32 --build="$build_platform" CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" WX_CONFIG="$wxc" LDFLAGS=-s |
|---|
| 66 | make CFLAGS=-Werror |
|---|
| 67 | make mingw_iss |
|---|
| 68 | PATH=$SAVE_PATH |
|---|
| 69 | |
|---|
| 70 | make distclean |
|---|
Note: See
TracBrowser
for help on using the repository browser.