source: git/make_release@ bfa0e10

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 bfa0e10 was bfa0e10, checked in by Olly Betts <olly@…>, 25 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
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
38 if ! make rpm ; then
39 echo make rpm failed
40 exit 1
41 fi
[9cfb427]42 if ! make debian ; then
43 echo make rpm failed
44 exit 1
45 fi
[e66be9a]46 if ! make dos_doc_zip ; then
47 echo make dos_doc_zip failed
48 exit 1
49 fi
[fd51dc3]50fi
[4208811]51if ! make alien_src_zip ; then
52 echo make alien_src_zip failed
53 exit 1
54fi
[9324b2d]55if ! make distclean ; then
56 echo make distclean failed
57 exit 1
58fi
[6e25b46c]59(
60# for building on mrs30
61if test -d /opt/crosstools/i386-pc-msdosdjgpp ; then
62 PATH=/opt/crosstools/bin:$PATH
63fi
[fd51dc3]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
[e66be9a]69if ! make ; then
[fd51dc3]70 echo djgpp make failed
71 exit 1
72fi
[4208811]73#if test x"$release" = xyes ; then
[e66be9a]74 if ! make djgpp_zip ; then
75 echo djgpp make djgpp_zip failed
76 exit 1
77 fi
[4208811]78#fi
[fd51dc3]79if ! make distclean ; then
80 echo make distclean failed
81 exit 1
82fi
[6e25b46c]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
[e38eff4]92# FIXME: is this all needed?
[6e25b46c]93if ! env LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then
[fd51dc3]94 echo mingw configure failed
95 exit 1
96fi
[e66be9a]97if ! make ; then
[fd51dc3]98 echo mingw make failed
99 exit 1
100fi
[4208811]101#if test x"$release" = xyes ; then
[e66be9a]102 if ! make mingw_zip ; then
103 echo mingw make mingw_zip failed
104 exit 1
105 fi
[4208811]106#fi
[e66be9a]107if ! make distclean ; then
108 echo make distclean failed
109 exit 1
110fi
[6e25b46c]111)
Note: See TracBrowser for help on using the repository browser.