source: git/make_release @ 6e25b46c

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

Building with debian mingw32 and djgpp on mrs30; added comment about
need for CVS version of automake to HACKING.

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

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