source: git/make_release @ c1f004f

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 c1f004f was 6d316f1, checked in by Olly Betts <olly@…>, 24 years ago

and finally?

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

  • Property mode set to 100755
File size: 4.3 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   build_platform=`sh config.guess`
99   SAVE_PATH="$PATH"
100   # for building on mrs30
101   if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
102      PATH=/opt/crosstools/i386-pc-msdosdjgpp/bin:/opt/crosstools/bin:$PATH
103   fi
104   if ! ./configure --host=i386-pc-msdosdjgpp --build="$build_platform" --with-x=no --disable-aven LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe CRLIB=-lalleg CROBJX=dosrot.o ; then
105      echo djgpp configure failed
106      exit 1
107   fi
108   if ! make ; then
109      echo djgpp make failed
110      exit 1
111   fi
112   if ! make djgpp_exe ; then
113      echo djgpp make djgpp_exe failed
114      exit 1
115   fi
116   if ! make distclean ; then
117      echo make distclean failed
118      exit 1
119   fi
120   PATH="$SAVE_PATH"
121fi
122if expr "$mk" : '.*\<mingw\>'; then
123   test -n "$build_platform" || build_platform=`sh config.guess`
124   SAVE_PATH="$PATH"
125   if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
126      # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
127      PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
128   else
129      if test -d /usr/i586-mingw32msvc/bin ; then
130         # debian mingw32 package
131         PATH=/usr/i586-mingw32msvc/bin:$PATH
132         CC=/usr/bin/i586-mingw32msvc-gcc
133         export CC
134         CXX=/usr/bin/i586-mingw32msvc-g++
135         export CXX
136      else
137         # variant of debian mingw32 package?
138         PATH=/usr/i386-mingw32msvc/bin:$PATH
139         CC=/usr/bin/i386-mingw32msvc-gcc
140         export CC
141         CXX=/usr/bin/i386-mingw32msvc-g++
142         export CXX
143      fi
144   fi
145   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
146      echo mingw configure failed
147      exit 1
148   fi
149   if ! make ; then
150      echo mingw make failed
151      exit 1
152   fi
153   if ! make mingw_iss ; then
154      echo mingw make mingw_iss failed
155      exit 1
156   fi
157   if ! make distclean ; then
158      echo make distclean failed
159      exit 1
160   fi
161   PATH="$SAVE_PATH"
162   CC=
163   CXX=
164fi
Note: See TracBrowser for help on using the repository browser.