Bug 453883, ensure true/false marcos are available, r=joshmoz, sr=jst
[wine-gecko.git] / media / liboggz / update.sh
blob6978a0b5218095d4cb39737fb73f16f9ee4f71f0
1 # Usage: cp $1/update.sh <liboggz_src_directory>
3 # Copies the needed files from a directory containing the original
4 # liboggz source that we need for the Mozilla HTML5 media support.
5 cp $1/config.h ./include/oggz/config.h
6 echo "#undef DEBUG" >>./include/oggz/config.h
7 cp $1/win32/config.h ./include/oggz/config_win32.h
8 echo "#undef DEBUG" >>./include/oggz/config_win32.h
9 cp $1/include/oggz/oggz_write.h ./include/oggz/oggz_write.h
10 cp $1/include/oggz/oggz_io.h ./include/oggz/oggz_io.h
11 cp $1/include/oggz/oggz_seek.h ./include/oggz/oggz_seek.h
12 cp $1/include/oggz/oggz_comments.h ./include/oggz/oggz_comments.h
13 cp $1/include/oggz/oggz_read.h ./include/oggz/oggz_read.h
14 cp $1/include/oggz/oggz_off_t.h ./include/oggz/oggz_off_t.h
15 cp $1/include/oggz/oggz_table.h ./include/oggz/oggz_table.h
16 cp $1/include/oggz/oggz.h ./include/oggz/oggz.h
17 cp $1/include/oggz/oggz_constants.h ./include/oggz/oggz_constants.h
18 cp $1/include/oggz/oggz_deprecated.h ./include/oggz/oggz_deprecated.h
19 cp $1/include/oggz/oggz_stream.h ./include/oggz/oggz_stream.h
20 cp $1/COPYING ./COPYING
21 cp $1/README ./README
22 cp $1/ChangeLog ./ChangeLog
23 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_write.c >./src/liboggz/oggz_write.c
24 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_table.c >./src/liboggz/oggz_table.c
25 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_dlist.c >./src/liboggz/oggz_dlist.c
26 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_auto.c >./src/liboggz/oggz_auto.c
27 cp $1/src/liboggz/oggz_private.h ./src/liboggz/oggz_private.h
28 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz.c >./src/liboggz/oggz.c
29 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_compat.h >./src/liboggz/oggz_compat.h
30 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_read.c >./src/liboggz/oggz_read.c
31 cp $1/src/liboggz/oggz_macros.h ./src/liboggz/oggz_macros.h
32 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_comments.c >./src/liboggz/oggz_comments.c
33 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_byteorder.h >./src/liboggz/oggz_byteorder.h
34 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_stream.c >./src/liboggz/oggz_stream.c
35 cp $1/src/liboggz/oggz_stream_private.h ./src/liboggz/oggz_stream_private.h
36 cp $1/src/liboggz/oggz_vector.h ./src/liboggz/oggz_vector.h
37 cp $1/src/liboggz/oggz_auto.h ./src/liboggz/oggz_auto.h
38 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_io.c >./src/liboggz/oggz_io.c
39 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_vector.c >./src/liboggz/oggz_vector.c
40 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/oggz_seek.c >./src/liboggz/oggz_seek.c
41 cp $1/src/liboggz/oggz_dlist.h ./src/liboggz/oggz_dlist.h
42 sed s/\#include\ \"config.h\"/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \"config.h\"\\n\#endif/g $1/src/liboggz/metric_internal.c >./src/liboggz/metric_internal.c
43 cp $1/AUTHORS ./AUTHORS