rb_cdio 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/ext/CdIo.c +132 -0
  2. data/ext/CdIo.h +108 -0
  3. data/ext/CdIo.o +0 -0
  4. data/ext/CdIo_Cd.c +345 -0
  5. data/ext/CdIo_Cd.o +0 -0
  6. data/ext/CdIo_Common.c +84 -0
  7. data/ext/CdIo_Common.o +0 -0
  8. data/ext/CdIo_Modulo.c +226 -0
  9. data/ext/CdIo_Modulo.o +0 -0
  10. data/ext/CdIo_Track.c +91 -0
  11. data/ext/CdIo_Track.o +0 -0
  12. data/ext/CdIo_TrackIso9660.c +78 -0
  13. data/ext/CdIo_TrackIso9660.o +0 -0
  14. data/ext/Makefile +127 -0
  15. data/ext/extconf.rb +4 -0
  16. data/ext/mkmf.log +26 -0
  17. data/lib/rb_cdio_read.rb +39 -0
  18. data/test/data/Makefile +677 -0
  19. data/test/data/Makefile.am +78 -0
  20. data/test/data/Makefile.in +677 -0
  21. data/test/data/bad-cat1.cue +9 -0
  22. data/test/data/bad-cat1.toc +8 -0
  23. data/test/data/bad-cat2.cue +9 -0
  24. data/test/data/bad-cat2.toc +8 -0
  25. data/test/data/bad-cat3.cue +9 -0
  26. data/test/data/bad-cat3.toc +8 -0
  27. data/test/data/bad-mode1.cue +7 -0
  28. data/test/data/bad-mode1.toc +5 -0
  29. data/test/data/bad-msf-1.cue +7 -0
  30. data/test/data/bad-msf-1.toc +6 -0
  31. data/test/data/bad-msf-2.cue +7 -0
  32. data/test/data/bad-msf-2.toc +6 -0
  33. data/test/data/bad-msf-3.cue +7 -0
  34. data/test/data/bad-msf-3.toc +6 -0
  35. data/test/data/cdda-read.right +148 -0
  36. data/test/data/cdda.bin +0 -0
  37. data/test/data/cdda.cue +6 -0
  38. data/test/data/cdda.right +44 -0
  39. data/test/data/cdda.toc +13 -0
  40. data/test/data/cdtext.toc +48 -0
  41. data/test/data/check_cd_read.sh +53 -0
  42. data/test/data/check_common_fn +186 -0
  43. data/test/data/check_common_fn.in +186 -0
  44. data/test/data/check_cue.sh +102 -0
  45. data/test/data/check_cue.sh.in +102 -0
  46. data/test/data/check_iso.sh +32 -0
  47. data/test/data/check_iso.sh.in +32 -0
  48. data/test/data/check_nrg.sh +68 -0
  49. data/test/data/check_nrg.sh.in +68 -0
  50. data/test/data/check_opts.sh +33 -0
  51. data/test/data/check_opts0.right +40 -0
  52. data/test/data/check_opts1.right +40 -0
  53. data/test/data/check_opts2.right +34 -0
  54. data/test/data/check_opts3.right +34 -0
  55. data/test/data/check_opts4.right +44 -0
  56. data/test/data/check_opts5.right +44 -0
  57. data/test/data/check_opts6.right +44 -0
  58. data/test/data/check_opts7.right +44 -0
  59. data/test/data/check_sizeof +117 -0
  60. data/test/data/check_sizeof.c +77 -0
  61. data/test/data/copying.iso +0 -0
  62. data/test/data/copying.right +10 -0
  63. data/test/data/data1.toc +8 -0
  64. data/test/data/data2.toc +13 -0
  65. data/test/data/data5.toc +13 -0
  66. data/test/data/data6.toc +8 -0
  67. data/test/data/data7.toc +13 -0
  68. data/test/data/isofs-m1-read.right +258 -0
  69. data/test/data/isofs-m1.bin +0 -0
  70. data/test/data/isofs-m1.cue +3 -0
  71. data/test/data/isofs-m1.right +57 -0
  72. data/test/data/isofs-m1.toc +4 -0
  73. data/test/data/t1.toc +5 -0
  74. data/test/data/t2.toc +6 -0
  75. data/test/data/t3.toc +11 -0
  76. data/test/data/t4.toc +8 -0
  77. data/test/data/t5.toc +8 -0
  78. data/test/data/t6.toc +7 -0
  79. data/test/data/t7.toc +12 -0
  80. data/test/data/t8.toc +14 -0
  81. data/test/data/t9.toc +31 -0
  82. data/test/data/testassert +117 -0
  83. data/test/data/testassert.c +36 -0
  84. data/test/data/testbincue +117 -0
  85. data/test/data/testbincue.c +88 -0
  86. data/test/data/testdefault +117 -0
  87. data/test/data/testdefault.c +196 -0
  88. data/test/data/testischar +117 -0
  89. data/test/data/testischar.c +71 -0
  90. data/test/data/testiso9660 +117 -0
  91. data/test/data/testiso9660.c +153 -0
  92. data/test/data/testtoc +117 -0
  93. data/test/data/testtoc.c +101 -0
  94. data/test/data/vcd_demo.right +116 -0
  95. data/test/data/videocd.nrg +0 -0
  96. data/test/data/videocd.right +92 -0
  97. data/test/testall.rb +4 -0
  98. data/test/testbincue.rb +30 -0
  99. data/test/testtoc.rb +45 -0
  100. metadata +141 -0
@@ -0,0 +1,31 @@
1
+ CD_DA
2
+ // check mulitple tracks
3
+ CATALOG "0724385356926"
4
+
5
+ TRACK AUDIO
6
+ ISRC "USEM39600078"
7
+ COPY
8
+ FILE "cdda.bin" 0:10:0
9
+ START 0:5:0
10
+
11
+ TRACK AUDIO
12
+ NO COPY
13
+ ISRC "USEM39600079"
14
+ FILE "cdda.bin" 0:10:0
15
+ START 0:2:0
16
+
17
+ TRACK AUDIO
18
+ COPY
19
+ FILE "cdda.bin" 0:10:0
20
+ START 0:1:30
21
+
22
+ TRACK AUDIO
23
+ NO COPY
24
+ START 0:0:0
25
+ FILE "cdda.bin" 0:10:0
26
+
27
+ TRACK AUDIO
28
+ ISRC "EDUMA9892346"
29
+ NO COPY
30
+ FILE "cdda.bin" 0:10:0
31
+ START 0:2:1
@@ -0,0 +1,117 @@
1
+ #! /bin/sh
2
+
3
+ # testassert - temporary wrapper script for .libs/testassert
4
+ # Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
5
+ #
6
+ # The testassert program cannot be directly executed until all the libtool
7
+ # libraries that it depends on are installed.
8
+ #
9
+ # This wrapper script should never be moved out of the build directory.
10
+ # If it is, it will not operate correctly.
11
+
12
+ # Sed substitution that helps us do robust quoting. It backslashifies
13
+ # metacharacters that are still active within double-quoted strings.
14
+ Xsed='/bin/sed -e 1s/^X//'
15
+ sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
16
+
17
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
18
+ # if CDPATH is set.
19
+ if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
20
+
21
+ relink_command="(cd /home/cdx/libcdio-0.70/test; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin:~/bin:~/RealPlayer:~/bin:~/RealPlayer\"; export PATH; gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -o \$progdir/\$file testassert.o ../lib/.libs/libcdio.so -lm -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/lib/.libs -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/opt/lib)"
22
+
23
+ # This environment variable determines our operation mode.
24
+ if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
25
+ # install mode needs the following variable:
26
+ notinst_deplibs=' ../lib/libcdio.la'
27
+ else
28
+ # When we are sourced in execute mode, $file and $echo are already set.
29
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
30
+ echo="echo"
31
+ file="$0"
32
+ # Make sure echo works.
33
+ if test "X$1" = X--no-reexec; then
34
+ # Discard the --no-reexec flag, and continue.
35
+ shift
36
+ elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
37
+ # Yippee, $echo works!
38
+ :
39
+ else
40
+ # Restart under the correct shell, and then maybe $echo will work.
41
+ exec /bin/sh "$0" --no-reexec ${1+"$@"}
42
+ fi
43
+ fi
44
+
45
+ # Find the directory that this script lives in.
46
+ thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
47
+ test "x$thisdir" = "x$file" && thisdir=.
48
+
49
+ # Follow symbolic links until we get to the real thisdir.
50
+ file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
51
+ while test -n "$file"; do
52
+ destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53
+
54
+ # If there was a directory component, then change thisdir.
55
+ if test "x$destdir" != "x$file"; then
56
+ case "$destdir" in
57
+ [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
58
+ *) thisdir="$thisdir/$destdir" ;;
59
+ esac
60
+ fi
61
+
62
+ file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
63
+ file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
64
+ done
65
+
66
+ # Try to get the absolute directory name.
67
+ absdir=`cd "$thisdir" && pwd`
68
+ test -n "$absdir" && thisdir="$absdir"
69
+
70
+ program=lt-'testassert'
71
+ progdir="$thisdir/.libs"
72
+
73
+ if test ! -f "$progdir/$program" || \
74
+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
75
+ test "X$file" != "X$progdir/$program"; }; then
76
+
77
+ file="$$-$program"
78
+
79
+ if test ! -d "$progdir"; then
80
+ mkdir "$progdir"
81
+ else
82
+ rm -f "$progdir/$file"
83
+ fi
84
+
85
+ # relink executable if necessary
86
+ if test -n "$relink_command"; then
87
+ if relink_command_output=`eval $relink_command 2>&1`; then :
88
+ else
89
+ echo "$relink_command_output" >&2
90
+ rm -f "$progdir/$file"
91
+ exit 1
92
+ fi
93
+ fi
94
+
95
+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
96
+ { rm -f "$progdir/$program";
97
+ mv -f "$progdir/$file" "$progdir/$program"; }
98
+ rm -f "$progdir/$file"
99
+ fi
100
+
101
+ if test -f "$progdir/$program"; then
102
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
103
+ # Run the actual program with our arguments.
104
+
105
+ exec $progdir/$program ${1+"$@"}
106
+
107
+ $echo "$0: cannot exec $program ${1+"$@"}"
108
+ exit 1
109
+ fi
110
+ else
111
+ # The program doesn't exist.
112
+ $echo "$0: error: $progdir/$program does not exist" 1>&2
113
+ $echo "This script is just a wrapper for $program." 1>&2
114
+ echo "See the libtool documentation for more information." 1>&2
115
+ exit 1
116
+ fi
117
+ fi
@@ -0,0 +1,36 @@
1
+ /*
2
+ $Id: testassert.c,v 1.1 2003/08/17 05:31:19 rocky Exp $
3
+
4
+ Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
5
+
6
+ This program is free software; you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation; either version 2 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program; if not, write to the Free Software
18
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ */
20
+
21
+ #ifdef HAVE_CONFIG_H
22
+ # include "config.h"
23
+ #endif
24
+
25
+ /* Private headers */
26
+ #include "cdio_assert.h"
27
+
28
+ int
29
+ main (int argc, const char *argv[])
30
+ {
31
+ cdio_assert (argc < 2);
32
+
33
+ cdio_assert_not_reached ();
34
+
35
+ return 0;
36
+ }
@@ -0,0 +1,117 @@
1
+ #! /bin/sh
2
+
3
+ # testbincue - temporary wrapper script for .libs/testbincue
4
+ # Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
5
+ #
6
+ # The testbincue program cannot be directly executed until all the libtool
7
+ # libraries that it depends on are installed.
8
+ #
9
+ # This wrapper script should never be moved out of the build directory.
10
+ # If it is, it will not operate correctly.
11
+
12
+ # Sed substitution that helps us do robust quoting. It backslashifies
13
+ # metacharacters that are still active within double-quoted strings.
14
+ Xsed='/bin/sed -e 1s/^X//'
15
+ sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
16
+
17
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
18
+ # if CDPATH is set.
19
+ if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
20
+
21
+ relink_command="(cd /home/cdx/libcdio-0.70/test; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin:~/bin:~/RealPlayer:~/bin:~/RealPlayer\"; export PATH; gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -o \$progdir/\$file testbincue.o ../lib/.libs/libcdio.so -lm -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/lib/.libs -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/opt/lib)"
22
+
23
+ # This environment variable determines our operation mode.
24
+ if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
25
+ # install mode needs the following variable:
26
+ notinst_deplibs=' ../lib/libcdio.la'
27
+ else
28
+ # When we are sourced in execute mode, $file and $echo are already set.
29
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
30
+ echo="echo"
31
+ file="$0"
32
+ # Make sure echo works.
33
+ if test "X$1" = X--no-reexec; then
34
+ # Discard the --no-reexec flag, and continue.
35
+ shift
36
+ elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
37
+ # Yippee, $echo works!
38
+ :
39
+ else
40
+ # Restart under the correct shell, and then maybe $echo will work.
41
+ exec /bin/sh "$0" --no-reexec ${1+"$@"}
42
+ fi
43
+ fi
44
+
45
+ # Find the directory that this script lives in.
46
+ thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
47
+ test "x$thisdir" = "x$file" && thisdir=.
48
+
49
+ # Follow symbolic links until we get to the real thisdir.
50
+ file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
51
+ while test -n "$file"; do
52
+ destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53
+
54
+ # If there was a directory component, then change thisdir.
55
+ if test "x$destdir" != "x$file"; then
56
+ case "$destdir" in
57
+ [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
58
+ *) thisdir="$thisdir/$destdir" ;;
59
+ esac
60
+ fi
61
+
62
+ file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
63
+ file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
64
+ done
65
+
66
+ # Try to get the absolute directory name.
67
+ absdir=`cd "$thisdir" && pwd`
68
+ test -n "$absdir" && thisdir="$absdir"
69
+
70
+ program=lt-'testbincue'
71
+ progdir="$thisdir/.libs"
72
+
73
+ if test ! -f "$progdir/$program" || \
74
+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
75
+ test "X$file" != "X$progdir/$program"; }; then
76
+
77
+ file="$$-$program"
78
+
79
+ if test ! -d "$progdir"; then
80
+ mkdir "$progdir"
81
+ else
82
+ rm -f "$progdir/$file"
83
+ fi
84
+
85
+ # relink executable if necessary
86
+ if test -n "$relink_command"; then
87
+ if relink_command_output=`eval $relink_command 2>&1`; then :
88
+ else
89
+ echo "$relink_command_output" >&2
90
+ rm -f "$progdir/$file"
91
+ exit 1
92
+ fi
93
+ fi
94
+
95
+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
96
+ { rm -f "$progdir/$program";
97
+ mv -f "$progdir/$file" "$progdir/$program"; }
98
+ rm -f "$progdir/$file"
99
+ fi
100
+
101
+ if test -f "$progdir/$program"; then
102
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
103
+ # Run the actual program with our arguments.
104
+
105
+ exec $progdir/$program ${1+"$@"}
106
+
107
+ $echo "$0: cannot exec $program ${1+"$@"}"
108
+ exit 1
109
+ fi
110
+ else
111
+ # The program doesn't exist.
112
+ $echo "$0: error: $progdir/$program does not exist" 1>&2
113
+ $echo "This script is just a wrapper for $program." 1>&2
114
+ echo "See the libtool documentation for more information." 1>&2
115
+ exit 1
116
+ fi
117
+ fi
@@ -0,0 +1,88 @@
1
+ /*
2
+ $Id: testbincue.c,v 1.2 2004/07/10 01:18:02 rocky Exp $
3
+
4
+ Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
5
+
6
+ This program is free software; you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation; either version 2 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program; if not, write to the Free Software
18
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ */
20
+
21
+ /*
22
+ Regression test for cdio_binfile().
23
+ */
24
+ #ifdef HAVE_CONFIG_H
25
+ # include "config.h"
26
+ #endif
27
+ #include <cdio/cdio.h>
28
+ #include <cdio/logging.h>
29
+
30
+ #ifdef HAVE_STDIO_H
31
+ #include <stdio.h>
32
+ #endif
33
+ #ifdef HAVE_SYS_TYPES_H
34
+ #include <sys/types.h>
35
+ #endif
36
+ #ifdef HAVE_STDLIB_H
37
+ #include <stdlib.h>
38
+ #endif
39
+ #include <string.h>
40
+
41
+ #define NUM_GOOD_CUES 2
42
+ #define NUM_BAD_CUES 7
43
+ int
44
+ main(int argc, const char *argv[])
45
+ {
46
+ const char *cue_file[NUM_GOOD_CUES] = {
47
+ "cdda.cue",
48
+ "isofs-m1.cue",
49
+ };
50
+
51
+ const char *badcue_file[NUM_BAD_CUES] = {
52
+ "bad-cat1.cue",
53
+ "bad-cat2.cue",
54
+ "bad-cat3.cue",
55
+ "bad-mode1.cue",
56
+ "bad-msf-1.cue",
57
+ "bad-msf-2.cue",
58
+ "bad-msf-3.cue",
59
+ };
60
+ int ret=0;
61
+ unsigned int i;
62
+
63
+ cdio_loglevel_default = (argc > 1) ? CDIO_LOG_DEBUG : CDIO_LOG_INFO;
64
+ for (i=0; i<NUM_GOOD_CUES; i++) {
65
+ if (!cdio_is_cuefile(cue_file[i])) {
66
+ printf("Incorrect: %s doesn't parse as a CDRWin CUE file.\n",
67
+ cue_file[i]);
68
+ ret=i+1;
69
+ } else {
70
+ printf("Correct: %s parses as a CDRWin CUE file.\n",
71
+ cue_file[i]);
72
+ }
73
+ }
74
+
75
+ for (i=0; i<NUM_BAD_CUES; i++) {
76
+ if (!cdio_is_cuefile(badcue_file[i])) {
77
+ printf("Correct: %s doesn't parse as a CDRWin CUE file.\n",
78
+ badcue_file[i]);
79
+ } else {
80
+ printf("Incorrect: %s parses as a CDRWin CUE file.\n",
81
+ badcue_file[i]);
82
+ ret+=50*i+1;
83
+ break;
84
+ }
85
+ }
86
+
87
+ return ret;
88
+ }
@@ -0,0 +1,117 @@
1
+ #! /bin/sh
2
+
3
+ # testdefault - temporary wrapper script for .libs/testdefault
4
+ # Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
5
+ #
6
+ # The testdefault program cannot be directly executed until all the libtool
7
+ # libraries that it depends on are installed.
8
+ #
9
+ # This wrapper script should never be moved out of the build directory.
10
+ # If it is, it will not operate correctly.
11
+
12
+ # Sed substitution that helps us do robust quoting. It backslashifies
13
+ # metacharacters that are still active within double-quoted strings.
14
+ Xsed='/bin/sed -e 1s/^X//'
15
+ sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
16
+
17
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
18
+ # if CDPATH is set.
19
+ if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
20
+
21
+ relink_command="(cd /home/cdx/libcdio-0.70/test; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin:~/bin:~/RealPlayer:~/bin:~/RealPlayer\"; export PATH; gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -o \$progdir/\$file testdefault.o ../lib/.libs/libcdio.so -lm -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/lib/.libs -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/opt/lib)"
22
+
23
+ # This environment variable determines our operation mode.
24
+ if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
25
+ # install mode needs the following variable:
26
+ notinst_deplibs=' ../lib/libcdio.la'
27
+ else
28
+ # When we are sourced in execute mode, $file and $echo are already set.
29
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
30
+ echo="echo"
31
+ file="$0"
32
+ # Make sure echo works.
33
+ if test "X$1" = X--no-reexec; then
34
+ # Discard the --no-reexec flag, and continue.
35
+ shift
36
+ elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
37
+ # Yippee, $echo works!
38
+ :
39
+ else
40
+ # Restart under the correct shell, and then maybe $echo will work.
41
+ exec /bin/sh "$0" --no-reexec ${1+"$@"}
42
+ fi
43
+ fi
44
+
45
+ # Find the directory that this script lives in.
46
+ thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
47
+ test "x$thisdir" = "x$file" && thisdir=.
48
+
49
+ # Follow symbolic links until we get to the real thisdir.
50
+ file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
51
+ while test -n "$file"; do
52
+ destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53
+
54
+ # If there was a directory component, then change thisdir.
55
+ if test "x$destdir" != "x$file"; then
56
+ case "$destdir" in
57
+ [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
58
+ *) thisdir="$thisdir/$destdir" ;;
59
+ esac
60
+ fi
61
+
62
+ file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
63
+ file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
64
+ done
65
+
66
+ # Try to get the absolute directory name.
67
+ absdir=`cd "$thisdir" && pwd`
68
+ test -n "$absdir" && thisdir="$absdir"
69
+
70
+ program=lt-'testdefault'
71
+ progdir="$thisdir/.libs"
72
+
73
+ if test ! -f "$progdir/$program" || \
74
+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
75
+ test "X$file" != "X$progdir/$program"; }; then
76
+
77
+ file="$$-$program"
78
+
79
+ if test ! -d "$progdir"; then
80
+ mkdir "$progdir"
81
+ else
82
+ rm -f "$progdir/$file"
83
+ fi
84
+
85
+ # relink executable if necessary
86
+ if test -n "$relink_command"; then
87
+ if relink_command_output=`eval $relink_command 2>&1`; then :
88
+ else
89
+ echo "$relink_command_output" >&2
90
+ rm -f "$progdir/$file"
91
+ exit 1
92
+ fi
93
+ fi
94
+
95
+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
96
+ { rm -f "$progdir/$program";
97
+ mv -f "$progdir/$file" "$progdir/$program"; }
98
+ rm -f "$progdir/$file"
99
+ fi
100
+
101
+ if test -f "$progdir/$program"; then
102
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
103
+ # Run the actual program with our arguments.
104
+
105
+ exec $progdir/$program ${1+"$@"}
106
+
107
+ $echo "$0: cannot exec $program ${1+"$@"}"
108
+ exit 1
109
+ fi
110
+ else
111
+ # The program doesn't exist.
112
+ $echo "$0: error: $progdir/$program does not exist" 1>&2
113
+ $echo "This script is just a wrapper for $program." 1>&2
114
+ echo "See the libtool documentation for more information." 1>&2
115
+ exit 1
116
+ fi
117
+ fi