1 | #! /bin/sh |
---|
2 | release=yes |
---|
3 | if test x"$1" = x-t ; then |
---|
4 | release= |
---|
5 | fi |
---|
6 | if 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 |
---|
16 | fi |
---|
17 | if test -f Makefile ; then |
---|
18 | if ! make distclean ; then |
---|
19 | echo make distclean failed |
---|
20 | exit 1 |
---|
21 | fi |
---|
22 | fi |
---|
23 | if ! ./configure ; then |
---|
24 | echo configure failed |
---|
25 | exit 1 |
---|
26 | fi |
---|
27 | # make distcheck fails - cvs version of automake doesn't clean up all the |
---|
28 | # files it creates... |
---|
29 | if ! make dist ; then |
---|
30 | echo make dist failed |
---|
31 | exit 1 |
---|
32 | fi |
---|
33 | if 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 |
---|
46 | fi |
---|
47 | if ! make alien_src_zip ; then |
---|
48 | echo make alien_src_zip failed |
---|
49 | exit 1 |
---|
50 | fi |
---|
51 | if ! make distclean ; then |
---|
52 | echo make distclean failed |
---|
53 | exit 1 |
---|
54 | fi |
---|
55 | if ! env CC=i386-pc-msdosdjgpp-gcc LDFLAGS=-s STRIP=echo CAVEROT=caverot.exe \ |
---|
56 | CRLIB=-lalleg CROBJX=dosrot.o ./configure --with-x=no ; then |
---|
57 | echo djgpp configure failed |
---|
58 | exit 1 |
---|
59 | fi |
---|
60 | if ! make ; then |
---|
61 | echo djgpp make failed |
---|
62 | exit 1 |
---|
63 | fi |
---|
64 | #if test x"$release" = xyes ; then |
---|
65 | if ! make djgpp_zip ; then |
---|
66 | echo djgpp make djgpp_zip failed |
---|
67 | exit 1 |
---|
68 | fi |
---|
69 | #fi |
---|
70 | if ! make distclean ; then |
---|
71 | echo make distclean failed |
---|
72 | exit 1 |
---|
73 | fi |
---|
74 | PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH |
---|
75 | # FIXME: is this all needed? |
---|
76 | if ! env ac_cv_c_bigendian=no LDFLAGS=-s CAVEROT= ./configure --with-x=no ; then |
---|
77 | echo mingw configure failed |
---|
78 | exit 1 |
---|
79 | fi |
---|
80 | if ! make ; then |
---|
81 | echo mingw make failed |
---|
82 | exit 1 |
---|
83 | fi |
---|
84 | #if test x"$release" = xyes ; then |
---|
85 | if ! make mingw_zip ; then |
---|
86 | echo mingw make mingw_zip failed |
---|
87 | exit 1 |
---|
88 | fi |
---|
89 | #fi |
---|
90 | if ! make distclean ; then |
---|
91 | echo make distclean failed |
---|
92 | exit 1 |
---|
93 | fi |
---|