source: git/make_release@ 02f8178

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 02f8178 was bfd7d71, checked in by Olly Betts <olly@…>, 25 years ago

More djgpp fiddling.

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

  • Property mode set to 100755
File size: 2.6 KB
RevLine 
[d7acd89]1#! /bin/sh
[e66be9a]2release=yes
3if test x"$1" = x-t ; then
4 release=
[d7acd89]5fi
[e66be9a]6if test x"$release" = xyes ; then
7 if ! cvs diff > /dev/null 2> /dev/null ; then
8 echo There are changes not checked into CVS - please rectify
9 exit 1
10 fi
11 # Update ChangeLog
[bfa0e10]12 CVS2CL=./cvs2cl.pl
13 if ! test -x $CVS2CL ; then
14 CVS2CL=../cvs2cl/cvs2cl.pl
15 fi
16 if ! $CVS2CL 2> /dev/null ; then
[e66be9a]17 echo Failed to update ChangeLog from CVS
18 exit 1
19 fi
[fd51dc3]20fi
21if test -f Makefile ; then
22 if ! make distclean ; then
23 echo make distclean failed
24 exit 1
25 fi
26fi
[dc459c9]27aclocal
28autoheader
29automake -a
30autoconf
[eea518c]31if ! ./configure ; then
32 echo configure failed
33 exit 1
34fi
[c693a3f]35# make distcheck fails - cvs version of automake doesn't clean up all the
36# files it creates...
37if ! make dist ; then
38 echo make dist failed
[e719df1]39 exit 1
40fi
[e66be9a]41if test x"$release" = xyes ; then
[7eb8d4a]42 if rpm --version > /dev/null 2> /dev/null ; then
43 if ! make rpm ; then
44 echo make rpm failed
45 exit 1
46 fi
47 else
48 echo rpm not installed - skipping rpm generation
[e66be9a]49 fi
[9cfb427]50 if ! make debian ; then
[7eb8d4a]51 echo make debian failed
[9cfb427]52 exit 1
53 fi
[e66be9a]54 if ! make dos_doc_zip ; then
55 echo make dos_doc_zip failed
56 exit 1
57 fi
[fd51dc3]58fi
[4208811]59if ! make alien_src_zip ; then
60 echo make alien_src_zip failed
61 exit 1
62fi
[9324b2d]63if ! make distclean ; then
64 echo make distclean failed
65 exit 1
66fi
[6e25b46c]67(
68# for building on mrs30
69if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
[bfd7d71]70 PATH=/opt/crosstools/i386-pc-msdosdjgpp/bin:/opt/crosstools/bin:$PATH
[6e25b46c]71fi
[7a62dce]72if ! env LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe \
[d162ed06]73 CRLIB=-lalleg CROBJX=dosrot.o ./configure --with-x=no --disable-aven; then
[fd51dc3]74 echo djgpp configure failed
75 exit 1
76fi
[e66be9a]77if ! make ; then
[fd51dc3]78 echo djgpp make failed
79 exit 1
80fi
[4208811]81#if test x"$release" = xyes ; then
[e66be9a]82 if ! make djgpp_zip ; then
83 echo djgpp make djgpp_zip failed
84 exit 1
85 fi
[4208811]86#fi
[fd51dc3]87if ! make distclean ; then
88 echo make distclean failed
89 exit 1
90fi
[6e25b46c]91)
92(
93if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
94 # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
95 PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
96else
97 # debian mingw32 package
[7a62dce]98 PATH=/usr/i386-mingw32msvc/bin:$PATH
99 CC=/usr/bin/i386-mingw32msvc-gcc
100 export CC
101 CXX=/usr/bin/i386-mingw32msvc-g++
102 export CXX
[6e25b46c]103fi
104if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then
[fd51dc3]105 echo mingw configure failed
106 exit 1
107fi
[e66be9a]108if ! make ; then
[fd51dc3]109 echo mingw make failed
110 exit 1
111fi
[4208811]112#if test x"$release" = xyes ; then
[e66be9a]113 if ! make mingw_zip ; then
114 echo mingw make mingw_zip failed
115 exit 1
116 fi
[4208811]117#fi
[e66be9a]118if ! make distclean ; then
119 echo make distclean failed
120 exit 1
121fi
[6e25b46c]122)
Note: See TracBrowser for help on using the repository browser.