source: git/make_release @ dc57b01

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 dc57b01 was 7eb8d4a, checked in by Olly Betts <olly@…>, 24 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
Line 
1#! /bin/sh
2release=yes
3if test x"$1" = x-t ; then
4   release=
5fi
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
12   CVS2CL=./cvs2cl.pl
13   if ! test -x $CVS2CL ; then
14      CVS2CL=../cvs2cl/cvs2cl.pl
15   fi
16   if ! $CVS2CL 2> /dev/null ; then
17      echo Failed to update ChangeLog from CVS
18      exit 1
19   fi
20fi
21if test -f Makefile ; then
22   if ! make distclean ; then
23      echo make distclean failed
24      exit 1
25   fi
26fi
27if ! ./configure ; then
28   echo configure failed
29   exit 1
30fi
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
35   exit 1
36fi
37if test x"$release" = xyes ; then
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
45   fi
46   if ! make debian ; then
47      echo make debian failed
48      exit 1
49   fi
50   if ! make dos_doc_zip ; then
51      echo make dos_doc_zip failed
52      exit 1
53   fi
54fi
55if ! make alien_src_zip ; then
56   echo make alien_src_zip failed
57   exit 1
58fi
59if ! make distclean ; then
60   echo make distclean failed
61   exit 1
62fi
63(
64# for building on mrs30
65if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
66   PATH=/opt/crosstools/bin:$PATH
67fi
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
73if ! make ; then
74   echo djgpp make failed
75   exit 1
76fi
77#if test x"$release" = xyes ; then
78   if ! make djgpp_zip ; then
79      echo djgpp make djgpp_zip failed
80      exit 1
81   fi
82#fi
83if ! make distclean ; then
84   echo make distclean failed
85   exit 1
86fi
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
96# FIXME: is this all needed?
97if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then
98   echo mingw configure failed
99   exit 1
100fi
101if ! make ; then
102   echo mingw make failed
103   exit 1
104fi
105#if test x"$release" = xyes ; then
106   if ! make mingw_zip ; then
107      echo mingw make mingw_zip failed
108      exit 1
109   fi
110#fi
111if ! make distclean ; then
112   echo make distclean failed
113   exit 1
114fi
115)
Note: See TracBrowser for help on using the repository browser.