source: git/make_release @ 4a6f8f6

RELEASE/1.0RELEASE/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 4a6f8f6 was 9b3648d, checked in by Olly Betts <olly@…>, 24 years ago

Fixes for autoconf2.50

git-svn-id: file:///home/survex-svn/survex/trunk@1600 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100755
File size: 4.2 KB
Line 
1#! /bin/sh
2
3rel=yes
4if test x"$1" = x-t ; then
5   rel=
6   shift
7fi
8mk=${@-src rpm deb doc alien djgpp mingw}
9if test x"$rel" = xyes ; then
10   # Update debian changelog entry if necessary
11   # If it does get updated, then the next check will fail...
12   ./update-debcl.pl
13   # Check everything is checked into CVS
14   if ! cvs diff > /dev/null 2> /dev/null ; then
15      echo There are changes not checked into CVS - please rectify
16      exit 1
17   fi
18   # Update ChangeLog
19   CVS2CL=./cvs2cl.pl
20   if ! test -x $CVS2CL ; then
21      CVS2CL=../cvs2cl/cvs2cl.pl
22   fi
23   if ! $CVS2CL 2> /dev/null ; then
24      echo Failed to update ChangeLog from CVS
25      exit 1
26   fi
27fi
28if test -f Makefile ; then
29   if ! make distclean ; then
30      echo make distclean failed
31      exit 1
32   fi
33fi
34if test x"$rel" = xyes ; then
35   rm -f config.guess.new config.sub.new
36   perl -e '-M "config.guess" && -M "config.sub" && exit 1' &&\
37      wget ftp://ftp.gnu.org/gnu/config/config.guess -O config.guess.new &&\
38      wget ftp://ftp.gnu.org/gnu/config/config.sub -O config.sub.new &&\
39      chmod 755 config.guess.new config.sub.new &&\
40      mv config.guess.new config.guess && mv config.sub.new config.sub
41fi
42aclocal
43autoheader
44automake -a
45autoconf
46if ! ./configure ; then
47   echo configure failed
48   exit 1
49fi
50if test x"$rel" = xyes ; then
51   if ! make distcheck ; then
52      echo make distcheck failed
53      exit 1
54   fi
55else
56   if ! make dist ; then
57      echo make dist failed
58      exit 1
59   fi
60fi
61if test x"$rel" = xyes && expr "$mk" : '.*\<rpm\>' || test x"$mk" = xrpm ; then
62   if rpm --version > /dev/null 2> /dev/null ; then
63      if ! make rpm ; then
64         echo make rpm failed
65         exit 1
66       fi
67   else
68       echo rpm not installed - skipping rpm generation
69   fi
70fi
71if test x"$rel" = xyes && expr "$mk" : '.*\<deb\>' || test x"$mk" = xdeb ; then
72   if ! make debian ; then
73      echo make debian failed
74      exit 1
75   fi
76fi
77if test x"$rel" = xyes && expr "$mk" : '.*\<doc\>' || test x"$mk" = xdoc ; then
78   if ! make dos_doc_exe ; then
79      echo make dos_doc_exe failed
80      exit 1
81   fi
82   if ! make riscos_doc_zip ; then
83      echo make riscos_doc_zip failed
84      exit 1
85   fi
86fi
87if expr "$mk" : '.*\<alien\>'; then
88   if ! make alien_src_zip ; then
89      echo make alien_src_zip failed
90      exit 1
91   fi
92fi
93if ! make distclean ; then
94   echo make distclean failed
95   exit 1
96fi
97if expr "$mk" : '.*\<djgpp\>'; then
98   SAVE_PATH="$PATH"
99   # for building on mrs30
100   if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
101      PATH=/opt/crosstools/i386-pc-msdosdjgpp/bin:/opt/crosstools/bin:$PATH
102   fi
103   if ! ./configure --host=djgpp --with-x=no --disable-aven LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe CRLIB=-lalleg CROBJX=dosrot.o ; then
104      echo djgpp configure failed
105      exit 1
106   fi
107   if ! make ; then
108      echo djgpp make failed
109      exit 1
110   fi
111   if ! make djgpp_exe ; then
112      echo djgpp make djgpp_exe failed
113      exit 1
114   fi
115   if ! make distclean ; then
116      echo make distclean failed
117      exit 1
118   fi
119   PATH="$SAVE_PATH"
120fi
121if expr "$mk" : '.*\<mingw\>'; then
122   build_platform=`sh config.guess`
123   SAVE_PATH="$PATH"
124   if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
125      # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
126      PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
127   else
128      if test -d /usr/i586-mingw32msvc/bin ; then
129         # debian mingw32 package
130         PATH=/usr/i586-mingw32msvc/bin:$PATH
131         CC=/usr/bin/i586-mingw32msvc-gcc
132         export CC
133         CXX=/usr/bin/i586-mingw32msvc-g++
134         export CXX
135      else
136         # variant of debian mingw32 package?
137         PATH=/usr/i386-mingw32msvc/bin:$PATH
138         CC=/usr/bin/i386-mingw32msvc-gcc
139         export CC
140         CXX=/usr/bin/i386-mingw32msvc-g++
141         export CXX
142      fi
143   fi
144   if ! ./configure --host=mingw32 --build=$build_platform --with-x=no WXCONFIG=`pwd`/mingw_extras/wxmsw-config LDFLAGS="-s -L/opt/rx-win32/lib" CPPFLAGS=-I/opt/rx-win32/include CAVEROT= ; then
145      echo mingw configure failed
146      exit 1
147   fi
148   if ! make ; then
149      echo mingw make failed
150      exit 1
151   fi
152   if ! make mingw_iss ; then
153      echo mingw make mingw_iss failed
154      exit 1
155   fi
156   if ! make distclean ; then
157      echo make distclean failed
158      exit 1
159   fi
160   PATH="$SAVE_PATH"
161   CC=
162   CXX=
163fi
Note: See TracBrowser for help on using the repository browser.