rb_cdio 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,196 @@
1
+ /*
2
+ $Id: testdefault.c,v 1.5 2004/05/07 10:57:50 rocky Exp $
3
+
4
+ Copyright (C) 2003, 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_get_devices, cdio_get_devices_with_cap(),
23
+ and cdio_free_device_list()
24
+ */
25
+ #ifdef HAVE_CONFIG_H
26
+ # include "config.h"
27
+ #endif
28
+ #include <cdio/cdio.h>
29
+ #include <cdio/cd_types.h>
30
+ #include <cdio/logging.h>
31
+
32
+ #ifdef HAVE_STDIO_H
33
+ #include <stdio.h>
34
+ #endif
35
+ #ifdef HAVE_SYS_TYPES_H
36
+ #include <sys/types.h>
37
+ #endif
38
+ #ifdef HAVE_STDLIB_H
39
+ #include <stdlib.h>
40
+ #endif
41
+ #include <string.h>
42
+
43
+ static void
44
+ log_handler (cdio_log_level_t level, const char message[])
45
+ {
46
+ switch(level) {
47
+ case CDIO_LOG_DEBUG:
48
+ case CDIO_LOG_INFO:
49
+ return;
50
+ default:
51
+ printf("cdio %d message: %s\n", level, message);
52
+ }
53
+ }
54
+
55
+ static bool
56
+ is_in(char **file_list, const char *file)
57
+ {
58
+ char **p;
59
+ for (p = file_list; p != NULL && *p != NULL; p++) {
60
+ if (strcmp(*p, file) == 0) {
61
+ printf("File %s found as expected\n", file);
62
+ return true;
63
+ }
64
+ }
65
+ printf("Can't find file %s in list\n", file);
66
+ return false;
67
+ }
68
+
69
+ int
70
+ main(int argc, const char *argv[])
71
+ {
72
+ char **nrg_images=NULL;
73
+ char **bincue_images=NULL;
74
+ char **imgs;
75
+ char **c;
76
+ unsigned int i;
77
+ int ret=0;
78
+
79
+ const char *cue_files[2] = {"cdda.cue", "isofs-m1.cue"};
80
+ const char *nrg_files[1] = {"videocd.nrg"};
81
+
82
+ cdio_log_set_handler (log_handler);
83
+
84
+ if (! (cdio_have_driver(DRIVER_NRG) && cdio_have_driver(DRIVER_BINCUE)) ) {
85
+ printf("You don't have enough drivers for this test\n");
86
+ exit(77);
87
+ }
88
+
89
+ nrg_images = cdio_get_devices(DRIVER_NRG);
90
+
91
+ for (imgs=nrg_images; *imgs != NULL; imgs++) {
92
+ printf("NRG image %s\n", *imgs);
93
+ }
94
+
95
+ if (!is_in(nrg_images, nrg_files[0])) {
96
+ return 10;
97
+ }
98
+
99
+ bincue_images = cdio_get_devices(DRIVER_BINCUE);
100
+
101
+ for (imgs=bincue_images; *imgs != NULL; imgs++) {
102
+ printf("bincue image %s\n", *imgs);
103
+ }
104
+
105
+ for (i=0; i<2; i++) {
106
+ if (is_in(bincue_images, cue_files[i])) {
107
+ printf("%s parses as a CDRWIN BIN/CUE csheet.\n", cue_files[i]);
108
+ } else {
109
+ printf("%s doesn't parse as a CDRWIN BIN/CUE csheet.\n", cue_files[i]);
110
+ ret = i+1;
111
+ }
112
+ }
113
+
114
+ if (ret != 0) return ret;
115
+
116
+ printf("-----\n");
117
+ printf("ISO 9660 images...\n");
118
+ imgs = NULL;
119
+ /* Print out a list of CDDA-drives. */
120
+ imgs = cdio_get_devices_with_cap(bincue_images, CDIO_FS_ISO_9660, false);
121
+
122
+ if (NULL == imgs || *imgs == NULL) {
123
+ printf("Failed to find an ISO 9660 image\n");
124
+ return 11;
125
+ }
126
+
127
+ for( c = imgs; *c != NULL; c++ ) {
128
+ printf("%s\n", *c);
129
+ }
130
+
131
+ cdio_free_device_list(imgs);
132
+ free(imgs);
133
+
134
+
135
+ printf("-----\n");
136
+ printf("CD-DA images...\n");
137
+ imgs = NULL;
138
+ /* Print out a list of CDDA-drives. */
139
+ imgs = cdio_get_devices_with_cap(bincue_images, CDIO_FS_AUDIO, false);
140
+
141
+ if (NULL == imgs || *imgs == NULL) {
142
+ printf("Failed to find CDDA image\n");
143
+ return 12;
144
+ }
145
+
146
+ for( c = imgs; *c != NULL; c++ ) {
147
+ printf("%s\n", *c);
148
+ }
149
+
150
+ cdio_free_device_list(imgs);
151
+ free(imgs);
152
+
153
+
154
+ printf("-----\n");
155
+ imgs = NULL;
156
+ printf("VCD images...\n");
157
+ /* Print out a list of CD-drives with VCD's in them. */
158
+ imgs = cdio_get_devices_with_cap(nrg_images,
159
+ (CDIO_FS_ANAL_SVCD|CDIO_FS_ANAL_CVD|CDIO_FS_ANAL_VIDEOCD|CDIO_FS_UNKNOWN),
160
+ true);
161
+ if (NULL == imgs || *imgs == NULL) {
162
+ printf("Failed to find VCD image\n");
163
+ return 13;
164
+ }
165
+
166
+ for( c = imgs; *c != NULL; c++ ) {
167
+ printf("image: %s\n", *c);
168
+ }
169
+
170
+ cdio_free_device_list(imgs);
171
+ free(imgs);
172
+
173
+ imgs = NULL;
174
+ /* Print out a list of CDDA-drives. */
175
+ imgs = cdio_get_devices_with_cap(bincue_images, CDIO_FS_HIGH_SIERRA, false);
176
+
177
+ if (NULL != imgs && *imgs != NULL) {
178
+ printf("Found erroneous High Sierra image\n");
179
+ return 14;
180
+ }
181
+
182
+ imgs = NULL;
183
+ /* Print out a list of CDDA-drives. */
184
+ imgs = cdio_get_devices_with_cap(bincue_images, CDIO_FS_UFS, true);
185
+
186
+ if (NULL != imgs && *imgs != NULL) {
187
+ printf("Found erroneous UFS image\n");
188
+ return 15;
189
+ }
190
+
191
+ cdio_free_device_list(imgs);
192
+ free(imgs);
193
+
194
+ return 0;
195
+
196
+ }
@@ -0,0 +1,117 @@
1
+ #! /bin/sh
2
+
3
+ # testischar - temporary wrapper script for .libs/testischar
4
+ # Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
5
+ #
6
+ # The testischar 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 testischar.o ../lib/.libs/libiso9660.so /home/cdx/libcdio-0.70/lib/.libs/libcdio.so ../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/libiso9660.la /home/cdx/libcdio-0.70/lib/libcdio.la ../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-'testischar'
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,71 @@
1
+ /*
2
+ $Id: testischar.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
+ /* Tests ISO9660 character sets. */
21
+
22
+ #ifdef HAVE_CONFIG_H
23
+ # include "config.h"
24
+ #endif
25
+
26
+ #include <stdio.h>
27
+ #include <cdio/iso9660.h>
28
+
29
+ int
30
+ main (int argc, const char *argv[])
31
+ {
32
+ int i, j;
33
+
34
+ printf (" ");
35
+
36
+ for (j = 0; j < 0x10; j++)
37
+ printf (" %1.1x", j);
38
+
39
+ printf (" |");
40
+
41
+ for (j = 0; j < 0x10; j++)
42
+ printf (" %1.1x", j);
43
+
44
+ printf ("\n");
45
+
46
+ for (i = 0; i < 0x10; i++)
47
+ {
48
+
49
+ printf ("%1.1x ", i);
50
+
51
+ for (j = 0; j < 0x10; j++)
52
+ {
53
+ int c = (j << 4) + i;
54
+
55
+ printf (" %c", iso9660_isdchar (c) ? c : ' ');
56
+ }
57
+
58
+ printf (" |");
59
+
60
+ for (j = 0; j < 0x10; j++)
61
+ {
62
+ int c = (j << 4) + i;
63
+
64
+ printf (" %c", iso9660_isachar (c) ? c : ' ');
65
+ }
66
+
67
+ printf ("\n");
68
+ }
69
+
70
+ return 0;
71
+ }
@@ -0,0 +1,117 @@
1
+ #! /bin/sh
2
+
3
+ # testiso9660 - temporary wrapper script for .libs/testiso9660
4
+ # Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
5
+ #
6
+ # The testiso9660 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 testiso9660.o ../lib/.libs/libiso9660.so /home/cdx/libcdio-0.70/lib/.libs/libcdio.so ../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/libiso9660.la /home/cdx/libcdio-0.70/lib/libcdio.la ../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-'testiso9660'
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