source: git/make_release@ 87941f0

RELEASE/1.0 RELEASE/1.1 RELEASE/1.2 debug-ci debug-ci-sanitisers faster-cavernlog log-select main stereo stereo-2025 walls-data walls-data-hanging-as-warning warn-only-for-hanging-survey
Last change on this file since 87941f0 was a20b208, checked in by Olly Betts <olly@…>, 24 years ago

Only include CVS log messages since the last release in ChangeLog.

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

  • Property mode set to 100755
File size: 4.4 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 TAG="`sed 's/^CHANGELOG_FROM_TAG=//p;d' configure.in`"
24 if ! cvs log $TAG|./fixchangelog.pl $TAG|$CVS2CL --stdin 2> /dev/null ; then
25 echo Failed to update ChangeLog from CVS
26 exit 1
27 fi
28fi
29if test -f Makefile ; then
30 if ! make distclean ; then
31 echo make distclean failed
32 exit 1
33 fi
34fi
35if test x"$rel" = xyes ; then
36 rm -f config.guess.new config.sub.new
37 perl -e '-M "config.guess" && -M "config.sub" && exit 1' &&\
38 wget ftp://ftp.gnu.org/gnu/config/config.guess -O config.guess.new &&\
39 wget ftp://ftp.gnu.org/gnu/config/config.sub -O config.sub.new &&\
40 chmod 755 config.guess.new config.sub.new &&\
41 mv config.guess.new config.guess && mv config.sub.new config.sub
42fi
43aclocal
44autoheader
45automake -a
46autoconf
47if ! ./configure ; then
48 echo configure failed
49 exit 1
50fi
51if test x"$rel" = xyes ; then
52 if ! make distcheck ; then
53 echo make distcheck failed
54 exit 1
55 fi
56else
57 if ! make dist ; then
58 echo make dist failed
59 exit 1
60 fi
61fi
62if test x"$rel" = xyes && expr "$mk" : '.*\<rpm\>' || test x"$mk" = xrpm ; then
63 if rpm --version > /dev/null 2> /dev/null ; then
64 if ! make rpm ; then
65 echo make rpm failed
66 exit 1
67 fi
68 else
69 echo rpm not installed - skipping rpm generation
70 fi
71fi
72if test x"$rel" = xyes && expr "$mk" : '.*\<deb\>' || test x"$mk" = xdeb ; then
73 if ! make debian ; then
74 echo make debian failed
75 exit 1
76 fi
77fi
78if test x"$rel" = xyes && expr "$mk" : '.*\<doc\>' || test x"$mk" = xdoc ; then
79 if ! make dos_doc_exe ; then
80 echo make dos_doc_exe failed
81 exit 1
82 fi
83 if ! make riscos_doc_zip ; then
84 echo make riscos_doc_zip failed
85 exit 1
86 fi
87fi
88if expr "$mk" : '.*\<alien\>'; then
89 if ! make alien_src_zip ; then
90 echo make alien_src_zip failed
91 exit 1
92 fi
93fi
94if ! make distclean ; then
95 echo make distclean failed
96 exit 1
97fi
98if expr "$mk" : '.*\<djgpp\>'; then
99 build_platform=`sh config.guess`
100 SAVE_PATH="$PATH"
101 # for building on mrs30
102 if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
103 PATH=/opt/crosstools/i386-pc-msdosdjgpp/bin:/opt/crosstools/bin:$PATH
104 fi
105 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
106 echo djgpp configure failed
107 exit 1
108 fi
109 if ! make ; then
110 echo djgpp make failed
111 exit 1
112 fi
113 if ! make djgpp_exe ; then
114 echo djgpp make djgpp_exe failed
115 exit 1
116 fi
117 if ! make distclean ; then
118 echo make distclean failed
119 exit 1
120 fi
121 PATH="$SAVE_PATH"
122fi
123if expr "$mk" : '.*\<mingw\>'; then
124 test -n "$build_platform" || build_platform=`sh config.guess`
125 SAVE_PATH="$PATH"
126 if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
127 # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
128 PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
129 else
130 if test -d /usr/i586-mingw32msvc/bin ; then
131 # debian mingw32 package
132 PATH=/usr/i586-mingw32msvc/bin:$PATH
133 CC=/usr/bin/i586-mingw32msvc-gcc
134 export CC
135 CXX=/usr/bin/i586-mingw32msvc-g++
136 export CXX
137 else
138 # variant of debian mingw32 package?
139 PATH=/usr/i386-mingw32msvc/bin:$PATH
140 CC=/usr/bin/i386-mingw32msvc-gcc
141 export CC
142 CXX=/usr/bin/i386-mingw32msvc-g++
143 export CXX
144 fi
145 fi
146 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
147 echo mingw configure failed
148 exit 1
149 fi
150 if ! make ; then
151 echo mingw make failed
152 exit 1
153 fi
154 if ! make mingw_iss ; then
155 echo mingw make mingw_iss failed
156 exit 1
157 fi
158 if ! make distclean ; then
159 echo make distclean failed
160 exit 1
161 fi
162 PATH="$SAVE_PATH"
163 CC=
164 CXX=
165fi
Note: See TracBrowser for help on using the repository browser.