source: git/make_release@ f3f3f8e

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 f3f3f8e was 38226ad, checked in by Olly Betts <olly@…>, 25 years ago

Fixed fetching of config.guess and config.sub.

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

  • Property mode set to 100755
File size: 3.8 KB
RevLine 
[d7acd89]1#! /bin/sh
[e66be9a]2release=yes
3if test x"$1" = x-t ; then
4 release=
[f30265a0]5 shift
[d7acd89]6fi
[f30265a0]7build=${@-src rpm deb doc alien djgpp mingw}
[e66be9a]8if test x"$release" = xyes ; then
9 if ! cvs diff > /dev/null 2> /dev/null ; then
10 echo There are changes not checked into CVS - please rectify
11 exit 1
12 fi
13 # Update ChangeLog
[bfa0e10]14 CVS2CL=./cvs2cl.pl
15 if ! test -x $CVS2CL ; then
16 CVS2CL=../cvs2cl/cvs2cl.pl
17 fi
18 if ! $CVS2CL 2> /dev/null ; then
[e66be9a]19 echo Failed to update ChangeLog from CVS
20 exit 1
21 fi
[fd51dc3]22fi
23if test -f Makefile ; then
24 if ! make distclean ; then
25 echo make distclean failed
26 exit 1
27 fi
28fi
[bd7120b]29if test x"$release" = xyes ; then
[38226ad]30 rm -f config.guess.new config.sub.new
31 wget ftp://ftp.gnu.org/gnu/config/config.guess -O config.guess.new &&\
32 wget ftp://ftp.gnu.org/gnu/config/config.sub -O config.sub.new &&\
33 mv config.guess.new config.guess && mv config.sub.new config.sub
[bd7120b]34fi
[dc459c9]35aclocal
36autoheader
37automake -a
38autoconf
[eea518c]39if ! ./configure ; then
40 echo configure failed
41 exit 1
42fi
[c693a3f]43# make distcheck fails - cvs version of automake doesn't clean up all the
[f30265a0]44# files it creates... (FIXME: change to distcheck once automake fixed)
[c693a3f]45if ! make dist ; then
46 echo make dist failed
[e719df1]47 exit 1
48fi
[f30265a0]49if test x"$release" = xyes && expr "$build" : '.*\<rpm\>'; then
[7eb8d4a]50 if rpm --version > /dev/null 2> /dev/null ; then
51 if ! make rpm ; then
52 echo make rpm failed
53 exit 1
54 fi
55 else
56 echo rpm not installed - skipping rpm generation
[e66be9a]57 fi
[f30265a0]58fi
59if test x"$release" = xyes && expr "$build" : '.*\<deb\>'; then
[9cfb427]60 if ! make debian ; then
[7eb8d4a]61 echo make debian failed
[9cfb427]62 exit 1
63 fi
[f30265a0]64fi
65if test x"$release" = xyes && expr "$build" : '.*\<doc\>'; then
[e68fccf]66 if ! make dos_doc_exe ; then
67 echo make dos_doc_exe failed
[e66be9a]68 exit 1
69 fi
[21a0009]70 if ! make riscos_doc_zip ; then
71 echo make riscos_doc_zip failed
72 exit 1
73 fi
[fd51dc3]74fi
[f30265a0]75if expr "$build" : '.*\<alien\>'; then
76 if ! make alien_src_zip ; then
77 echo make alien_src_zip failed
78 exit 1
79 fi
[4208811]80fi
[9324b2d]81if ! make distclean ; then
82 echo make distclean failed
83 exit 1
84fi
[f30265a0]85if expr "$build" : '.*\<djgpp\>'; then
86 SAVE_PATH="$PATH"
87 # for building on mrs30
88 if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
89 PATH=/opt/crosstools/i386-pc-msdosdjgpp/bin:/opt/crosstools/bin:$PATH
90 fi
91 if ! env LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe \
92 CRLIB=-lalleg CROBJX=dosrot.o ./configure --with-x=no --disable-aven; then
93 echo djgpp configure failed
94 exit 1
95 fi
96 if ! make ; then
97 echo djgpp make failed
98 exit 1
99 fi
[e68fccf]100 if ! make djgpp_exe ; then
101 echo djgpp make djgpp_exe failed
[e66be9a]102 exit 1
103 fi
[f30265a0]104 if ! make distclean ; then
105 echo make distclean failed
106 exit 1
107 fi
108 PATH="$SAVE_PATH"
[fd51dc3]109fi
[f30265a0]110if expr "$build" : '.*\<mingw\>'; then
111 SAVE_PATH="$PATH"
112 if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
113 # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
114 PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
[b0a751b4]115 else
[f30265a0]116 if test -d /usr/i586-mingw32msvc/bin ; then
117 # debian mingw32 package
118 PATH=/usr/i586-mingw32msvc/bin:$PATH
119 CC=/usr/bin/i586-mingw32msvc-gcc
120 export CC
121 CXX=/usr/bin/i586-mingw32msvc-g++
122 export CXX
123 else
124 # variant of debian mingw32 package?
125 PATH=/usr/i386-mingw32msvc/bin:$PATH
126 CC=/usr/bin/i386-mingw32msvc-gcc
127 export CC
128 CXX=/usr/bin/i386-mingw32msvc-g++
129 export CXX
130 fi
131 fi
132 if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no --with-wxconfig=`pwd`/mingw_extras/wxmsw-config ; then
133 echo mingw configure failed
134 exit 1
135 fi
136 if ! make ; then
137 echo mingw make failed
138 exit 1
[b0a751b4]139 fi
[8f6f99b]140 if ! make mingw_iss ; then
141 echo mingw make mingw_iss failed
[e66be9a]142 exit 1
143 fi
[f30265a0]144 if ! make distclean ; then
145 echo make distclean failed
146 exit 1
147 fi
148 PATH="$SAVE_PATH"
149 CC=
150 CXX=
[e66be9a]151fi
Note: See TracBrowser for help on using the repository browser.