source: git/make_release @ bfa0e10

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

Check for cvs2cl.pl in current directory too.

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

  • Property mode set to 100755
File size: 2.4 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 ! make rpm ; then
39      echo make rpm failed
40      exit 1
41   fi
42   if ! make debian ; then
43      echo make rpm failed
44      exit 1
45   fi
46   if ! make dos_doc_zip ; then
47      echo make dos_doc_zip failed
48      exit 1
49   fi
50fi
51if ! make alien_src_zip ; then
52   echo make alien_src_zip failed
53   exit 1
54fi
55if ! make distclean ; then
56   echo make distclean failed
57   exit 1
58fi
59(
60# for building on mrs30
61if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
62   PATH=/opt/crosstools/bin:$PATH
63fi
64if ! env CC=i386-pc-msdosdjgpp-gcc LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe \
65 CRLIB=-lalleg CROBJX=dosrot.o ./configure --with-x=no ; then
66   echo djgpp configure failed
67   exit 1
68fi
69if ! make ; then
70   echo djgpp make failed
71   exit 1
72fi
73#if test x"$release" = xyes ; then
74   if ! make djgpp_zip ; then
75      echo djgpp make djgpp_zip failed
76      exit 1
77   fi
78#fi
79if ! make distclean ; then
80   echo make distclean failed
81   exit 1
82fi
83)
84(
85if test -d /usr/local/cross-tools/i386-mingw32msvc/bin ; then
86   # binaries from http://www.devolution.com/~slouken/SDL/Xmingw32/
87   PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH
88else
89   # debian mingw32 package
90   PATH=/usr/i586-mingw32msvc/bin:$PATH
91fi
92# FIXME: is this all needed?
93if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then
94   echo mingw configure failed
95   exit 1
96fi
97if ! make ; then
98   echo mingw make failed
99   exit 1
100fi
101#if test x"$release" = xyes ; then
102   if ! make mingw_zip ; then
103      echo mingw make mingw_zip failed
104      exit 1
105   fi
106#fi
107if ! make distclean ; then
108   echo make distclean failed
109   exit 1
110fi
111)
Note: See TracBrowser for help on using the repository browser.