2335
|
1 #!/bin/sh |
|
2 # |
|
3 # To apply this patch, cd to the top level Octave source directory and |
|
4 # run this file through /bin/sh. It will first remove any files that |
|
5 # have been deleted from the source distribution since the last |
|
6 # release and then update the sources with patch(1). |
|
7 # |
|
8 # Diffs for updating *.ps, *.dvi, and *.info* files are not included |
|
9 # because they can be recreated from the Texinfo files using TeX and |
|
10 # makeinfo. |
|
11 # |
|
12 # Diffs for updating parse.cc and y.tab.h are not included because |
|
13 # they can be recreated from the file parse.y using bison. |
|
14 # |
|
15 # Diffs for updating lex.cc are not included because it can be |
|
16 # recreated from lex.l using flex. |
|
17 # |
|
18 # Diffs for updating the configure script are not included because |
|
19 # it can be recreated from configure.in using autoconf. |
|
20 # |
|
21 # John W. Eaton |
9322
|
22 # jwe@octave.org |
2335
|
23 |
|
24 if test -f src/octave.cc ; then |
|
25 true |
|
26 else |
|
27 echo '***********************************************************' 1>&2 |
|
28 echo 'You must run this script in the top-level octave directory!' 1>&2 |
|
29 echo '***********************************************************' 1>&2 |
|
30 exit 1 |
|
31 fi |
|
32 |
|
33 echo 'removing the bsd-math directory' |
|
34 rm -rf bsd-math |
|
35 |
|
36 echo 'creating libcruft/slatec-fn directory' |
|
37 mkdir libcruft/slatec-fn |
|
38 |
|
39 echo 'removing old test files' |
|
40 rm -f test/octave.test/index.exp |
|
41 rm -f test/octave.test/prefer.exp |
|
42 rm -f test/octave.test/zero-one.exp |
|
43 |
|
44 echo 'creating directories for new test files' |
|
45 mkdir test/octave.test/index/dfi-f |
|
46 mkdir test/octave.test/index/dfi-t |
|
47 mkdir test/octave.test/prefer |
|
48 mkdir test/octave.test/zero-one/fff |
|
49 mkdir test/octave.test/zero-one/fft |
|
50 mkdir test/octave.test/zero-one/ftf |
|
51 mkdir test/octave.test/zero-one/tff |
|
52 mkdir test/octave.test/zero-one/ftt |
|
53 mkdir test/octave.test/zero-one/tft |
|
54 mkdir test/octave.test/zero-one/ttf |
|
55 mkdir test/octave.test/zero-one/ttt |
|
56 |
|
57 echo 'patching existing files' |
|
58 patch -p1 << \PATCH_EOF |
|
59 PATCH_EOF |