source: git/make_release @ 0ae292f

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

configure.in,doc/Makefile.am,doc/cl2html.pl,doc/index.htm.in: Stop
generating an HTML version of the ChangeLog? - it's too low level to
be of interest to non-developers, and developers can look at the
source code.

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

  • Property mode set to 100755
File size: 3.6 KB
Line 
1#! /bin/sh
2
3# Needed for wine to run on roadkill:
4LD_ASSUME_KERNEL=2.4.1
5export LD_ASSUME_KERNEL
6
7# flags to consider:
8# CFLAGS="-O2 -fomit-frame-pointer"
9# CXXFLAGS="-O2 -fno-rtti -fomit-frame-pointer"
10rel=yes
11if test x"$1" = x-t ; then
12   rel=
13   shift
14fi
15mk=${@-src rpm deb doc mingw}
16if test x"$rel" = xyes ; then
17   # Update debian changelog entry if necessary
18   # If it does get updated, then the next check will fail...
19   ./update-debcl.pl
20   # Check everything is checked into CVS
21   if ! cvs diff > /dev/null 2> /dev/null ; then
22      echo There are changes not checked into CVS - please rectify
23      exit 1
24   fi
25fi
26if test -f Makefile ; then
27   if ! make distclean ; then
28      echo make distclean failed
29      exit 1
30   fi
31fi
32if test yes = "$rel" ; then
33   cp -u /usr/share/misc/config.guess .
34   cp -u /usr/share/misc/config.sub .
35fi
36autoreconf --force -i
37export CC
38export CXX
39CC=gcc
40CXX=g++
41if ! ./configure ; then
42   echo configure failed
43   exit 1
44fi
45if test yes = "$rel" ; then
46   export CFLAGS
47   export CXXFLAGS
48   # tell the preproceesor to be C89 - this makes it reject // comments
49# FIXME -Werror makes configure explode CFLAGS="-Werror -Wp,-std=c89"
50# FIXME   CXXFLAGS="-Werror"
51   CFLAGS="-Wp,-std=c89"
52   CXXFLAGS=
53   if ! make dist ; then # distcheck fails extend.tst for some reason!
54      echo make distcheck failed
55      exit 1
56   fi
57   CFLAGS=
58   CXXFLAGS=
59else
60   if ! make dist ; then
61      echo make dist failed
62      exit 1
63   fi
64fi
65if test x"$rel" = xyes && expr "$mk" : '.*\<rpm\>' || test x"$mk" = xrpm ; then
66   if rpmbuild --version > /dev/null 2> /dev/null ; then
67      if ! make rpm ; then
68         echo make rpm failed
69         exit 1
70       fi
71   else
72       echo rpmbuild not installed - skipping rpm generation
73   fi
74fi
75if test x"$rel" = xyes && expr "$mk" : '.*\<deb\>' || test x"$mk" = xdeb ; then
76   if ! make debian ; then
77      echo make debian failed
78      exit 1
79   fi
80fi
81if test x"$rel" = xyes && expr "$mk" : '.*\<doc\>' || test x"$mk" = xdoc ; then
82   if ! make dos_doc_exe ; then
83      echo make dos_doc_exe failed
84      exit 1
85   fi
86fi
87if ! make distclean ; then
88   echo make distclean failed
89   exit 1
90fi
91unset CC
92unset CXX
93if expr "$mk" : '.*\<mingw\>'; then
94   test -n "$build_platform" || build_platform=`sh config.guess`
95   SAVE_PATH="$PATH"
96   if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
97      # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
98      PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
99   else
100      if test -d /usr/i586-mingw32msvc/bin ; then
101         # debian mingw32 package
102         PATH=/usr/i586-mingw32msvc/bin:$PATH
103         CC=/usr/bin/i586-mingw32msvc-gcc
104         export CC
105         CXX=/usr/bin/i586-mingw32msvc-g++
106         export CXX
107      else
108         # variant of debian mingw32 package?
109         PATH=/usr/i386-mingw32msvc/bin:$PATH
110         CC=/usr/bin/i386-mingw32msvc-gcc
111         export CC
112         CXX=/usr/bin/i386-mingw32msvc-g++
113         export CXX
114      fi
115   fi
116   wxc=wxmsw-2.5-config
117   for a in /usr/i586-mingw32msvc/bin/wx-config ; do
118      test -x "$a" && wxc="$a"
119   done
120   LDFLAGS=
121   CPPFLAGS=
122#if ! ./configure --host=mingw32 --build="$build_platform" WXCONFIG="$wxc" LDFLAGS="-s $LDFLAGS" CPPFLAGS="$CPPFLAGS" CFLAGS=-Werror CXXFLAGS=-Werror ; then
123   if ! ./configure --host=mingw32 --build="$build_platform" WXCONFIG="$wxc" LDFLAGS="-s $LDFLAGS" CPPFLAGS="$CPPFLAGS" ; then
124      echo mingw configure failed
125      exit 1
126   fi
127   if ! make ; then
128      echo mingw make failed
129      exit 1
130   fi
131   if ! make mingw_iss ; then
132      echo mingw make mingw_iss failed
133      exit 1
134   fi
135   if ! make distclean ; then
136      echo make distclean failed
137      exit 1
138   fi
139   PATH="$SAVE_PATH"
140   CC=
141   CXX=
142fi
Note: See TracBrowser for help on using the repository browser.