source: git/make_release@ e924d96

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

If rpm isn't installed skip RPM building.

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

  • Property mode set to 100755
File size: 2.5 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
[eea518c]27if ! ./configure ; then
28 echo configure failed
29 exit 1
30fi
[c693a3f]31# make distcheck fails - cvs version of automake doesn't clean up all the
32# files it creates...
33if ! make dist ; then
34 echo make dist failed
[e719df1]35 exit 1
36fi
[e66be9a]37if test x"$release" = xyes ; then
[7eb8d4a]38 if rpm --version > /dev/null 2> /dev/null ; then
39 if ! make rpm ; then
40 echo make rpm failed
41 exit 1
42 fi
43 else
44 echo rpm not installed - skipping rpm generation
[e66be9a]45 fi
[9cfb427]46 if ! make debian ; then
[7eb8d4a]47 echo make debian failed
[9cfb427]48 exit 1
49 fi
[e66be9a]50 if ! make dos_doc_zip ; then
51 echo make dos_doc_zip failed
52 exit 1
53 fi
[fd51dc3]54fi
[4208811]55if ! make alien_src_zip ; then
56 echo make alien_src_zip failed
57 exit 1
58fi
[9324b2d]59if ! make distclean ; then
60 echo make distclean failed
61 exit 1
62fi
[6e25b46c]63(
64# for building on mrs30
65if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
66 PATH=/opt/crosstools/bin:$PATH
67fi
[fd51dc3]68if ! env CC=i386-pc-msdosdjgpp-gcc LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe \
69 CRLIB=-lalleg CROBJX=dosrot.o ./configure --with-x=no ; then
70 echo djgpp configure failed
71 exit 1
72fi
[e66be9a]73if ! make ; then
[fd51dc3]74 echo djgpp make failed
75 exit 1
76fi
[4208811]77#if test x"$release" = xyes ; then
[e66be9a]78 if ! make djgpp_zip ; then
79 echo djgpp make djgpp_zip failed
80 exit 1
81 fi
[4208811]82#fi
[fd51dc3]83if ! make distclean ; then
84 echo make distclean failed
85 exit 1
86fi
[6e25b46c]87)
88(
89if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
90 # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
91 PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
92else
93 # debian mingw32 package
94 PATH=/usr/i586-mingw32msvc/bin:$PATH
95fi
[e38eff4]96# FIXME: is this all needed?
[6e25b46c]97if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then
[fd51dc3]98 echo mingw configure failed
99 exit 1
100fi
[e66be9a]101if ! make ; then
[fd51dc3]102 echo mingw make failed
103 exit 1
104fi
[4208811]105#if test x"$release" = xyes ; then
[e66be9a]106 if ! make mingw_zip ; then
107 echo mingw make mingw_zip failed
108 exit 1
109 fi
[4208811]110#fi
[e66be9a]111if ! make distclean ; then
112 echo make distclean failed
113 exit 1
114fi
[6e25b46c]115)
Note: See TracBrowser for help on using the repository browser.