source: git/make_release @ 2ae110c

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 2ae110c was 1bec96f, checked in by Olly Betts <olly@…>, 24 years ago

Pass flags to lik with librx under win32; include librx.dll in windows
installer.

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

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