libusb 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +3 -3
- data/History.md +8 -0
- data/README.md +1 -0
- data/Rakefile +14 -14
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/AUTHORS +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/COPYING +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/ChangeLog +9 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/INSTALL +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Makefile.in +188 -156
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/NEWS +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/PORTING +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/README +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/TODO +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/common.xcconfig +10 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/config.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/debug.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb.xcconfig +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb.xcodeproj/project.pbxproj +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb_debug.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb_release.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/release.xcconfig +1 -0
- data/ext/libusb-1.0.19/aclocal.m4 +1190 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/README +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/config.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/Android.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/Application.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/examples.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/libusb.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/tests.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/compile +7 -3
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.guess +116 -78
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.h.in +0 -3
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.sub +66 -46
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/configure +265 -208
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/configure.ac +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/depcomp +269 -186
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/Makefile.in +72 -35
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/doxygen.cfg.in +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/Makefile.in +134 -70
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/dpfp.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/dpfp_threaded.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/ezusb.c +9 -5
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/ezusb.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/fxload.c +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt1.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/hotplugtest.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/listdevs.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/sam3u_benchmark.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/xusb.c +22 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/install-sh +7 -7
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb-1.0.pc.in +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/Makefile.in +133 -93
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/core.c +86 -15
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/descriptor.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/hotplug.c +6 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/hotplug.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/io.c +54 -17
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb-1.0.def +8 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb-1.0.rc +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb.h +42 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusbi.h +10 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/darwin_usb.c +156 -53
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/darwin_usb.h +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_netlink.c +26 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_udev.c +2 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_usbfs.c +93 -6
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_usbfs.h +12 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/netbsd_usb.c +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/openbsd_usb.c +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_posix.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_posix.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_windows.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_windows.h +12 -6
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_posix.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_posix.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_windows.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_windows.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/wince_usb.c +8 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/wince_usb.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_common.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_usb.c +175 -42
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_usb.h +35 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/strerror.c +17 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/sync.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/version.h +1 -1
- data/ext/libusb-1.0.19/libusb/version_nano.h +1 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/ltmain.sh +3 -3
- data/ext/{libusb-1.0.18/aclocal.m4 → libusb-1.0.19/m4/libtool.m4} +36 -1734
- data/ext/libusb-1.0.19/m4/ltoptions.m4 +384 -0
- data/ext/libusb-1.0.19/m4/ltsugar.m4 +123 -0
- data/ext/libusb-1.0.19/m4/ltversion.m4 +23 -0
- data/ext/libusb-1.0.19/m4/lt~obsolete.m4 +98 -0
- data/ext/libusb-1.0.19/missing +215 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/Makefile.in +128 -70
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/libusb_testlib.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/stress.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/testlib.c +0 -0
- data/lib/libusb.rb +3 -1
- data/lib/libusb/bos.rb +306 -0
- data/lib/libusb/call.rb +84 -0
- data/lib/libusb/constants.rb +4 -0
- data/lib/libusb/dev_handle.rb +77 -0
- data/lib/libusb/endpoint.rb +20 -0
- data/lib/libusb/ss_companion.rb +69 -0
- data/lib/libusb/transfer.rb +34 -0
- data/lib/libusb/version_gem.rb +1 -1
- data/libusb.gemspec +1 -0
- data/test/test_libusb_bos.rb +118 -0
- data/test/test_libusb_bulk_stream_transfer.rb +50 -0
- data/test/test_libusb_descriptors.rb +29 -0
- data/test/test_libusb_hotplug.rb +1 -1
- data/test/test_libusb_threads.rb +1 -1
- metadata +146 -124
- metadata.gz.sig +0 -0
- data/ext/libusb-1.0.18/libusb/version_nano.h +0 -1
- data/ext/libusb-1.0.18/missing +0 -331
data/test/test_libusb_hotplug.rb
CHANGED
@@ -106,7 +106,7 @@ class TestLibusbHotplug < Minitest::Test
|
|
106
106
|
ctx.handle_events 5000
|
107
107
|
ctx.handle_events 5000
|
108
108
|
|
109
|
-
skip if devs.empty? && devs2.empty?
|
109
|
+
skip "no hotplug action taken" if devs.empty? && devs2.empty?
|
110
110
|
assert_equal 1, devs.length, "Should be deregistered after the first event"
|
111
111
|
assert_equal 2, devs2.length, "Should have received two events"
|
112
112
|
assert_operator devs2.map(&:last), :include?, :HOTPLUG_EVENT_DEVICE_ARRIVED, "Should have received ARRIVED"
|
data/test/test_libusb_threads.rb
CHANGED
@@ -70,7 +70,7 @@ class TestLibusbThreads < Minitest::Test
|
|
70
70
|
endpoint = endpoints_in[dev]
|
71
71
|
1.times do
|
72
72
|
st = Time.now
|
73
|
-
|
73
|
+
assert_raises LIBUSB::ERROR_TIMEOUT do
|
74
74
|
dev.bulk_transfer(:endpoint=>endpoint, :dataIn=>123, :timeout=>100)
|
75
75
|
end
|
76
76
|
assert_operator Time.now-st, :<, 5
|
metadata
CHANGED
@@ -1,62 +1,76 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libusb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lars Kanis
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDLjCCAhagAwIBAgIBAjANBgkqhkiG9w0BAQUFADA9MQ4wDAYDVQQDDAVrYW5p
|
14
|
+
czEXMBUGCgmSJomT8ixkARkWB2NvbWNhcmQxEjAQBgoJkiaJk/IsZAEZFgJkZTAe
|
15
|
+
Fw0xNDAyMjYwOTMzMDBaFw0xNTAyMjYwOTMzMDBaMD0xDjAMBgNVBAMMBWthbmlz
|
16
|
+
MRcwFQYKCZImiZPyLGQBGRYHY29tY2FyZDESMBAGCgmSJomT8ixkARkWAmRlMIIB
|
17
|
+
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApop+rNmg35bzRugZ21VMGqI6
|
18
|
+
HGzPLO4VHYncWn/xmgPU/ZMcZdfj6MzIaZJ/czXyt4eHpBk1r8QOV3gBXnRXEjVW
|
19
|
+
9xi+EdVOkTV2/AVFKThcbTAQGiF/bT1n2M+B1GTybRzMg6hyhOJeGPqIhLfJEpxn
|
20
|
+
lJi4+ENAVT4MpqHEAGB8yFoPC0GqiOHQsdHxQV3P3c2OZqG+yJey74QtwA2tLcLn
|
21
|
+
Q53c63+VLGsOjODl1yPn/2ejyq8qWu6ahfTxiIlSar2UbwtaQGBDFdb2CXgEufXT
|
22
|
+
L7oaPxlmj+Q2oLOfOnInd2Oxop59HoJCQPsg8f921J43NCQGA8VHK6paxIRDLQID
|
23
|
+
AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUvgTdT7fe
|
24
|
+
x17ugO3IOsjEJwW7KP4wDQYJKoZIhvcNAQEFBQADggEBAFmIAhRT0awqLQN9e4Uv
|
25
|
+
ZEk+jUWv4zkb+TWiKFJXlwjPyjGbZY9gVfOwAwMibYOK/t/+57ZzW3d0L12OUwvo
|
26
|
+
on84NVvYtIr1/iskJFWFkMoIquAFCdi9p68stSPMQK2XcrJJuRot29fJtropsZBa
|
27
|
+
2cpaNd/sRYdK4oep2usdKifA1lI0hIkPb3r5nLfwG2lAqBH7WZsUICHcTgR0VEbG
|
28
|
+
z9Ug5qQp9Uz73xC9YdGvGiuOX53LYobHAR4MWi2xxDlHI+ER8mRz0eY2FUuNu/Wj
|
29
|
+
GrqF74zpLl7/KFdHC8VmzwZS18hvDjxeLVuVI2gIGnBInqnlqv05g/l4/1pISh5j
|
30
|
+
dS4=
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
13
33
|
dependencies:
|
14
34
|
- !ruby/object:Gem::Dependency
|
15
35
|
name: ffi
|
16
36
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
37
|
requirements:
|
19
|
-
- -
|
38
|
+
- - ">="
|
20
39
|
- !ruby/object:Gem::Version
|
21
40
|
version: '1.0'
|
22
41
|
type: :runtime
|
23
42
|
prerelease: false
|
24
43
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
44
|
requirements:
|
27
|
-
- -
|
45
|
+
- - ">="
|
28
46
|
- !ruby/object:Gem::Version
|
29
47
|
version: '1.0'
|
30
48
|
- !ruby/object:Gem::Dependency
|
31
49
|
name: rake-compiler
|
32
50
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
51
|
requirements:
|
35
|
-
- -
|
52
|
+
- - ">="
|
36
53
|
- !ruby/object:Gem::Version
|
37
54
|
version: '0.6'
|
38
55
|
type: :development
|
39
56
|
prerelease: false
|
40
57
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
58
|
requirements:
|
43
|
-
- -
|
59
|
+
- - ">="
|
44
60
|
- !ruby/object:Gem::Version
|
45
61
|
version: '0.6'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: bundler
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
65
|
requirements:
|
51
|
-
- -
|
66
|
+
- - ">="
|
52
67
|
- !ruby/object:Gem::Version
|
53
68
|
version: '0'
|
54
69
|
type: :development
|
55
70
|
prerelease: false
|
56
71
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
72
|
requirements:
|
59
|
-
- -
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0'
|
62
76
|
description: LIBUSB is a Ruby binding that gives Ruby programmers access to arbitrary
|
@@ -68,111 +82,117 @@ extensions:
|
|
68
82
|
- ext/extconf.rb
|
69
83
|
extra_rdoc_files: []
|
70
84
|
files:
|
71
|
-
- .gitignore
|
72
|
-
- .travis.yml
|
73
|
-
- .yardopts
|
85
|
+
- ".gitignore"
|
86
|
+
- ".travis.yml"
|
87
|
+
- ".yardopts"
|
74
88
|
- COPYING
|
75
89
|
- Gemfile
|
76
90
|
- History.md
|
77
91
|
- README.md
|
78
92
|
- Rakefile
|
79
93
|
- ext/extconf.rb
|
80
|
-
- ext/libusb-1.0.
|
81
|
-
- ext/libusb-1.0.
|
82
|
-
- ext/libusb-1.0.
|
83
|
-
- ext/libusb-1.0.
|
84
|
-
- ext/libusb-1.0.
|
85
|
-
- ext/libusb-1.0.
|
86
|
-
- ext/libusb-1.0.
|
87
|
-
- ext/libusb-1.0.
|
88
|
-
- ext/libusb-1.0.
|
89
|
-
- ext/libusb-1.0.
|
90
|
-
- ext/libusb-1.0.
|
91
|
-
- ext/libusb-1.0.
|
92
|
-
- ext/libusb-1.0.
|
93
|
-
- ext/libusb-1.0.
|
94
|
-
- ext/libusb-1.0.
|
95
|
-
- ext/libusb-1.0.
|
96
|
-
- ext/libusb-1.0.
|
97
|
-
- ext/libusb-1.0.
|
98
|
-
- ext/libusb-1.0.
|
99
|
-
- ext/libusb-1.0.
|
100
|
-
- ext/libusb-1.0.
|
101
|
-
- ext/libusb-1.0.
|
102
|
-
- ext/libusb-1.0.
|
103
|
-
- ext/libusb-1.0.
|
104
|
-
- ext/libusb-1.0.
|
105
|
-
- ext/libusb-1.0.
|
106
|
-
- ext/libusb-1.0.
|
107
|
-
- ext/libusb-1.0.
|
108
|
-
- ext/libusb-1.0.
|
109
|
-
- ext/libusb-1.0.
|
110
|
-
- ext/libusb-1.0.
|
111
|
-
- ext/libusb-1.0.
|
112
|
-
- ext/libusb-1.0.
|
113
|
-
- ext/libusb-1.0.
|
114
|
-
- ext/libusb-1.0.
|
115
|
-
- ext/libusb-1.0.
|
116
|
-
- ext/libusb-1.0.
|
117
|
-
- ext/libusb-1.0.
|
118
|
-
- ext/libusb-1.0.
|
119
|
-
- ext/libusb-1.0.
|
120
|
-
- ext/libusb-1.0.
|
121
|
-
- ext/libusb-1.0.
|
122
|
-
- ext/libusb-1.0.
|
123
|
-
- ext/libusb-1.0.
|
124
|
-
- ext/libusb-1.0.
|
125
|
-
- ext/libusb-1.0.
|
126
|
-
- ext/libusb-1.0.
|
127
|
-
- ext/libusb-1.0.
|
128
|
-
- ext/libusb-1.0.
|
129
|
-
- ext/libusb-1.0.
|
130
|
-
- ext/libusb-1.0.
|
131
|
-
- ext/libusb-1.0.
|
132
|
-
- ext/libusb-1.0.
|
133
|
-
- ext/libusb-1.0.
|
134
|
-
- ext/libusb-1.0.
|
135
|
-
- ext/libusb-1.0.
|
136
|
-
- ext/libusb-1.0.
|
137
|
-
- ext/libusb-1.0.
|
138
|
-
- ext/libusb-1.0.
|
139
|
-
- ext/libusb-1.0.
|
140
|
-
- ext/libusb-1.0.
|
141
|
-
- ext/libusb-1.0.
|
142
|
-
- ext/libusb-1.0.
|
143
|
-
- ext/libusb-1.0.
|
144
|
-
- ext/libusb-1.0.
|
145
|
-
- ext/libusb-1.0.
|
146
|
-
- ext/libusb-1.0.
|
147
|
-
- ext/libusb-1.0.
|
148
|
-
- ext/libusb-1.0.
|
149
|
-
- ext/libusb-1.0.
|
150
|
-
- ext/libusb-1.0.
|
151
|
-
- ext/libusb-1.0.
|
152
|
-
- ext/libusb-1.0.
|
153
|
-
- ext/libusb-1.0.
|
154
|
-
- ext/libusb-1.0.
|
155
|
-
- ext/libusb-1.0.
|
156
|
-
- ext/libusb-1.0.
|
157
|
-
- ext/libusb-1.0.
|
158
|
-
- ext/libusb-1.0.
|
159
|
-
- ext/libusb-1.0.
|
160
|
-
- ext/libusb-1.0.
|
161
|
-
- ext/libusb-1.0.
|
162
|
-
- ext/libusb-1.0.
|
163
|
-
- ext/libusb-1.0.
|
164
|
-
- ext/libusb-1.0.
|
165
|
-
- ext/libusb-1.0.
|
166
|
-
- ext/libusb-1.0.
|
167
|
-
- ext/libusb-1.0.
|
168
|
-
- ext/libusb-1.0.
|
169
|
-
- ext/libusb-1.0.
|
170
|
-
- ext/libusb-1.0.
|
171
|
-
- ext/libusb-1.0.
|
172
|
-
- ext/libusb-1.0.
|
173
|
-
- ext/libusb-1.0.
|
174
|
-
- ext/libusb-1.0.
|
94
|
+
- ext/libusb-1.0.19/AUTHORS
|
95
|
+
- ext/libusb-1.0.19/COPYING
|
96
|
+
- ext/libusb-1.0.19/ChangeLog
|
97
|
+
- ext/libusb-1.0.19/INSTALL
|
98
|
+
- ext/libusb-1.0.19/Makefile.am
|
99
|
+
- ext/libusb-1.0.19/Makefile.in
|
100
|
+
- ext/libusb-1.0.19/NEWS
|
101
|
+
- ext/libusb-1.0.19/PORTING
|
102
|
+
- ext/libusb-1.0.19/README
|
103
|
+
- ext/libusb-1.0.19/TODO
|
104
|
+
- ext/libusb-1.0.19/Xcode/common.xcconfig
|
105
|
+
- ext/libusb-1.0.19/Xcode/config.h
|
106
|
+
- ext/libusb-1.0.19/Xcode/debug.xcconfig
|
107
|
+
- ext/libusb-1.0.19/Xcode/libusb.xcconfig
|
108
|
+
- ext/libusb-1.0.19/Xcode/libusb.xcodeproj/project.pbxproj
|
109
|
+
- ext/libusb-1.0.19/Xcode/libusb_debug.xcconfig
|
110
|
+
- ext/libusb-1.0.19/Xcode/libusb_release.xcconfig
|
111
|
+
- ext/libusb-1.0.19/Xcode/release.xcconfig
|
112
|
+
- ext/libusb-1.0.19/aclocal.m4
|
113
|
+
- ext/libusb-1.0.19/android/README
|
114
|
+
- ext/libusb-1.0.19/android/config.h
|
115
|
+
- ext/libusb-1.0.19/android/jni/Android.mk
|
116
|
+
- ext/libusb-1.0.19/android/jni/Application.mk
|
117
|
+
- ext/libusb-1.0.19/android/jni/examples.mk
|
118
|
+
- ext/libusb-1.0.19/android/jni/libusb.mk
|
119
|
+
- ext/libusb-1.0.19/android/jni/tests.mk
|
120
|
+
- ext/libusb-1.0.19/compile
|
121
|
+
- ext/libusb-1.0.19/config.guess
|
122
|
+
- ext/libusb-1.0.19/config.h.in
|
123
|
+
- ext/libusb-1.0.19/config.sub
|
124
|
+
- ext/libusb-1.0.19/configure
|
125
|
+
- ext/libusb-1.0.19/configure.ac
|
126
|
+
- ext/libusb-1.0.19/depcomp
|
127
|
+
- ext/libusb-1.0.19/doc/Makefile.am
|
128
|
+
- ext/libusb-1.0.19/doc/Makefile.in
|
129
|
+
- ext/libusb-1.0.19/doc/doxygen.cfg.in
|
130
|
+
- ext/libusb-1.0.19/examples/Makefile.am
|
131
|
+
- ext/libusb-1.0.19/examples/Makefile.in
|
132
|
+
- ext/libusb-1.0.19/examples/dpfp.c
|
133
|
+
- ext/libusb-1.0.19/examples/dpfp_threaded.c
|
134
|
+
- ext/libusb-1.0.19/examples/ezusb.c
|
135
|
+
- ext/libusb-1.0.19/examples/ezusb.h
|
136
|
+
- ext/libusb-1.0.19/examples/fxload.c
|
137
|
+
- ext/libusb-1.0.19/examples/getopt/getopt.c
|
138
|
+
- ext/libusb-1.0.19/examples/getopt/getopt.h
|
139
|
+
- ext/libusb-1.0.19/examples/getopt/getopt1.c
|
140
|
+
- ext/libusb-1.0.19/examples/hotplugtest.c
|
141
|
+
- ext/libusb-1.0.19/examples/listdevs.c
|
142
|
+
- ext/libusb-1.0.19/examples/sam3u_benchmark.c
|
143
|
+
- ext/libusb-1.0.19/examples/xusb.c
|
144
|
+
- ext/libusb-1.0.19/install-sh
|
145
|
+
- ext/libusb-1.0.19/libusb-1.0.pc.in
|
146
|
+
- ext/libusb-1.0.19/libusb/Makefile.am
|
147
|
+
- ext/libusb-1.0.19/libusb/Makefile.in
|
148
|
+
- ext/libusb-1.0.19/libusb/core.c
|
149
|
+
- ext/libusb-1.0.19/libusb/descriptor.c
|
150
|
+
- ext/libusb-1.0.19/libusb/hotplug.c
|
151
|
+
- ext/libusb-1.0.19/libusb/hotplug.h
|
152
|
+
- ext/libusb-1.0.19/libusb/io.c
|
153
|
+
- ext/libusb-1.0.19/libusb/libusb-1.0.def
|
154
|
+
- ext/libusb-1.0.19/libusb/libusb-1.0.rc
|
155
|
+
- ext/libusb-1.0.19/libusb/libusb.h
|
156
|
+
- ext/libusb-1.0.19/libusb/libusbi.h
|
157
|
+
- ext/libusb-1.0.19/libusb/os/darwin_usb.c
|
158
|
+
- ext/libusb-1.0.19/libusb/os/darwin_usb.h
|
159
|
+
- ext/libusb-1.0.19/libusb/os/linux_netlink.c
|
160
|
+
- ext/libusb-1.0.19/libusb/os/linux_udev.c
|
161
|
+
- ext/libusb-1.0.19/libusb/os/linux_usbfs.c
|
162
|
+
- ext/libusb-1.0.19/libusb/os/linux_usbfs.h
|
163
|
+
- ext/libusb-1.0.19/libusb/os/netbsd_usb.c
|
164
|
+
- ext/libusb-1.0.19/libusb/os/openbsd_usb.c
|
165
|
+
- ext/libusb-1.0.19/libusb/os/poll_posix.c
|
166
|
+
- ext/libusb-1.0.19/libusb/os/poll_posix.h
|
167
|
+
- ext/libusb-1.0.19/libusb/os/poll_windows.c
|
168
|
+
- ext/libusb-1.0.19/libusb/os/poll_windows.h
|
169
|
+
- ext/libusb-1.0.19/libusb/os/threads_posix.c
|
170
|
+
- ext/libusb-1.0.19/libusb/os/threads_posix.h
|
171
|
+
- ext/libusb-1.0.19/libusb/os/threads_windows.c
|
172
|
+
- ext/libusb-1.0.19/libusb/os/threads_windows.h
|
173
|
+
- ext/libusb-1.0.19/libusb/os/wince_usb.c
|
174
|
+
- ext/libusb-1.0.19/libusb/os/wince_usb.h
|
175
|
+
- ext/libusb-1.0.19/libusb/os/windows_common.h
|
176
|
+
- ext/libusb-1.0.19/libusb/os/windows_usb.c
|
177
|
+
- ext/libusb-1.0.19/libusb/os/windows_usb.h
|
178
|
+
- ext/libusb-1.0.19/libusb/strerror.c
|
179
|
+
- ext/libusb-1.0.19/libusb/sync.c
|
180
|
+
- ext/libusb-1.0.19/libusb/version.h
|
181
|
+
- ext/libusb-1.0.19/libusb/version_nano.h
|
182
|
+
- ext/libusb-1.0.19/ltmain.sh
|
183
|
+
- ext/libusb-1.0.19/m4/libtool.m4
|
184
|
+
- ext/libusb-1.0.19/m4/ltoptions.m4
|
185
|
+
- ext/libusb-1.0.19/m4/ltsugar.m4
|
186
|
+
- ext/libusb-1.0.19/m4/ltversion.m4
|
187
|
+
- ext/libusb-1.0.19/m4/lt~obsolete.m4
|
188
|
+
- ext/libusb-1.0.19/missing
|
189
|
+
- ext/libusb-1.0.19/tests/Makefile.am
|
190
|
+
- ext/libusb-1.0.19/tests/Makefile.in
|
191
|
+
- ext/libusb-1.0.19/tests/libusb_testlib.h
|
192
|
+
- ext/libusb-1.0.19/tests/stress.c
|
193
|
+
- ext/libusb-1.0.19/tests/testlib.c
|
175
194
|
- lib/libusb.rb
|
195
|
+
- lib/libusb/bos.rb
|
176
196
|
- lib/libusb/call.rb
|
177
197
|
- lib/libusb/compat.rb
|
178
198
|
- lib/libusb/configuration.rb
|
@@ -184,10 +204,13 @@ files:
|
|
184
204
|
- lib/libusb/eventmachine.rb
|
185
205
|
- lib/libusb/interface.rb
|
186
206
|
- lib/libusb/setting.rb
|
207
|
+
- lib/libusb/ss_companion.rb
|
187
208
|
- lib/libusb/transfer.rb
|
188
209
|
- lib/libusb/version_gem.rb
|
189
210
|
- lib/libusb/version_struct.rb
|
190
211
|
- libusb.gemspec
|
212
|
+
- test/test_libusb_bos.rb
|
213
|
+
- test/test_libusb_bulk_stream_transfer.rb
|
191
214
|
- test/test_libusb_capability.rb
|
192
215
|
- test/test_libusb_compat.rb
|
193
216
|
- test/test_libusb_compat_mass_storage.rb
|
@@ -202,31 +225,30 @@ files:
|
|
202
225
|
- test/test_libusb_threads.rb
|
203
226
|
- test/test_libusb_version.rb
|
204
227
|
homepage: http://github.com/larskanis/libusb
|
205
|
-
licenses:
|
228
|
+
licenses:
|
229
|
+
- LGPL-3
|
230
|
+
metadata: {}
|
206
231
|
post_install_message:
|
207
232
|
rdoc_options:
|
208
|
-
- --main
|
233
|
+
- "--main"
|
209
234
|
- README.md
|
210
|
-
- --charset=UTF-8
|
235
|
+
- "--charset=UTF-8"
|
211
236
|
require_paths:
|
212
237
|
- lib
|
213
238
|
required_ruby_version: !ruby/object:Gem::Requirement
|
214
|
-
none: false
|
215
239
|
requirements:
|
216
|
-
- -
|
240
|
+
- - ">="
|
217
241
|
- !ruby/object:Gem::Version
|
218
242
|
version: '0'
|
219
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
|
-
none: false
|
221
244
|
requirements:
|
222
|
-
- -
|
245
|
+
- - ">="
|
223
246
|
- !ruby/object:Gem::Version
|
224
247
|
version: '0'
|
225
248
|
requirements: []
|
226
249
|
rubyforge_project: libusb
|
227
|
-
rubygems_version:
|
250
|
+
rubygems_version: 2.4.5
|
228
251
|
signing_key:
|
229
|
-
specification_version:
|
252
|
+
specification_version: 4
|
230
253
|
summary: Access USB devices from Ruby via libusb-1.0
|
231
254
|
test_files: []
|
232
|
-
has_rdoc:
|
metadata.gz.sig
ADDED
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
#define LIBUSB_NANO 10866
|
data/ext/libusb-1.0.18/missing
DELETED
@@ -1,331 +0,0 @@
|
|
1
|
-
#! /bin/sh
|
2
|
-
# Common stub for a few missing GNU programs while installing.
|
3
|
-
|
4
|
-
scriptversion=2012-01-06.13; # UTC
|
5
|
-
|
6
|
-
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
|
7
|
-
# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
8
|
-
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
9
|
-
|
10
|
-
# This program is free software; you can redistribute it and/or modify
|
11
|
-
# it under the terms of the GNU General Public License as published by
|
12
|
-
# the Free Software Foundation; either version 2, or (at your option)
|
13
|
-
# any later version.
|
14
|
-
|
15
|
-
# This program is distributed in the hope that it will be useful,
|
16
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
-
# GNU General Public License for more details.
|
19
|
-
|
20
|
-
# You should have received a copy of the GNU General Public License
|
21
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
22
|
-
|
23
|
-
# As a special exception to the GNU General Public License, if you
|
24
|
-
# distribute this file as part of a program that contains a
|
25
|
-
# configuration script generated by Autoconf, you may include it under
|
26
|
-
# the same distribution terms that you use for the rest of that program.
|
27
|
-
|
28
|
-
if test $# -eq 0; then
|
29
|
-
echo 1>&2 "Try \`$0 --help' for more information"
|
30
|
-
exit 1
|
31
|
-
fi
|
32
|
-
|
33
|
-
run=:
|
34
|
-
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
|
35
|
-
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
|
36
|
-
|
37
|
-
# In the cases where this matters, `missing' is being run in the
|
38
|
-
# srcdir already.
|
39
|
-
if test -f configure.ac; then
|
40
|
-
configure_ac=configure.ac
|
41
|
-
else
|
42
|
-
configure_ac=configure.in
|
43
|
-
fi
|
44
|
-
|
45
|
-
msg="missing on your system"
|
46
|
-
|
47
|
-
case $1 in
|
48
|
-
--run)
|
49
|
-
# Try to run requested program, and just exit if it succeeds.
|
50
|
-
run=
|
51
|
-
shift
|
52
|
-
"$@" && exit 0
|
53
|
-
# Exit code 63 means version mismatch. This often happens
|
54
|
-
# when the user try to use an ancient version of a tool on
|
55
|
-
# a file that requires a minimum version. In this case we
|
56
|
-
# we should proceed has if the program had been absent, or
|
57
|
-
# if --run hadn't been passed.
|
58
|
-
if test $? = 63; then
|
59
|
-
run=:
|
60
|
-
msg="probably too old"
|
61
|
-
fi
|
62
|
-
;;
|
63
|
-
|
64
|
-
-h|--h|--he|--hel|--help)
|
65
|
-
echo "\
|
66
|
-
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
67
|
-
|
68
|
-
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
69
|
-
error status if there is no known handling for PROGRAM.
|
70
|
-
|
71
|
-
Options:
|
72
|
-
-h, --help display this help and exit
|
73
|
-
-v, --version output version information and exit
|
74
|
-
--run try to run the given command, and emulate it if it fails
|
75
|
-
|
76
|
-
Supported PROGRAM values:
|
77
|
-
aclocal touch file \`aclocal.m4'
|
78
|
-
autoconf touch file \`configure'
|
79
|
-
autoheader touch file \`config.h.in'
|
80
|
-
autom4te touch the output file, or create a stub one
|
81
|
-
automake touch all \`Makefile.in' files
|
82
|
-
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
83
|
-
flex create \`lex.yy.c', if possible, from existing .c
|
84
|
-
help2man touch the output file
|
85
|
-
lex create \`lex.yy.c', if possible, from existing .c
|
86
|
-
makeinfo touch the output file
|
87
|
-
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
88
|
-
|
89
|
-
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
|
90
|
-
\`g' are ignored when checking the name.
|
91
|
-
|
92
|
-
Send bug reports to <bug-automake@gnu.org>."
|
93
|
-
exit $?
|
94
|
-
;;
|
95
|
-
|
96
|
-
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
97
|
-
echo "missing $scriptversion (GNU Automake)"
|
98
|
-
exit $?
|
99
|
-
;;
|
100
|
-
|
101
|
-
-*)
|
102
|
-
echo 1>&2 "$0: Unknown \`$1' option"
|
103
|
-
echo 1>&2 "Try \`$0 --help' for more information"
|
104
|
-
exit 1
|
105
|
-
;;
|
106
|
-
|
107
|
-
esac
|
108
|
-
|
109
|
-
# normalize program name to check for.
|
110
|
-
program=`echo "$1" | sed '
|
111
|
-
s/^gnu-//; t
|
112
|
-
s/^gnu//; t
|
113
|
-
s/^g//; t'`
|
114
|
-
|
115
|
-
# Now exit if we have it, but it failed. Also exit now if we
|
116
|
-
# don't have it and --version was passed (most likely to detect
|
117
|
-
# the program). This is about non-GNU programs, so use $1 not
|
118
|
-
# $program.
|
119
|
-
case $1 in
|
120
|
-
lex*|yacc*)
|
121
|
-
# Not GNU programs, they don't have --version.
|
122
|
-
;;
|
123
|
-
|
124
|
-
*)
|
125
|
-
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
126
|
-
# We have it, but it failed.
|
127
|
-
exit 1
|
128
|
-
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
129
|
-
# Could not run --version or --help. This is probably someone
|
130
|
-
# running `$TOOL --version' or `$TOOL --help' to check whether
|
131
|
-
# $TOOL exists and not knowing $TOOL uses missing.
|
132
|
-
exit 1
|
133
|
-
fi
|
134
|
-
;;
|
135
|
-
esac
|
136
|
-
|
137
|
-
# If it does not exist, or fails to run (possibly an outdated version),
|
138
|
-
# try to emulate it.
|
139
|
-
case $program in
|
140
|
-
aclocal*)
|
141
|
-
echo 1>&2 "\
|
142
|
-
WARNING: \`$1' is $msg. You should only need it if
|
143
|
-
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
144
|
-
to install the \`Automake' and \`Perl' packages. Grab them from
|
145
|
-
any GNU archive site."
|
146
|
-
touch aclocal.m4
|
147
|
-
;;
|
148
|
-
|
149
|
-
autoconf*)
|
150
|
-
echo 1>&2 "\
|
151
|
-
WARNING: \`$1' is $msg. You should only need it if
|
152
|
-
you modified \`${configure_ac}'. You might want to install the
|
153
|
-
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
154
|
-
archive site."
|
155
|
-
touch configure
|
156
|
-
;;
|
157
|
-
|
158
|
-
autoheader*)
|
159
|
-
echo 1>&2 "\
|
160
|
-
WARNING: \`$1' is $msg. You should only need it if
|
161
|
-
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
162
|
-
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
163
|
-
from any GNU archive site."
|
164
|
-
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
165
|
-
test -z "$files" && files="config.h"
|
166
|
-
touch_files=
|
167
|
-
for f in $files; do
|
168
|
-
case $f in
|
169
|
-
*:*) touch_files="$touch_files "`echo "$f" |
|
170
|
-
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
171
|
-
*) touch_files="$touch_files $f.in";;
|
172
|
-
esac
|
173
|
-
done
|
174
|
-
touch $touch_files
|
175
|
-
;;
|
176
|
-
|
177
|
-
automake*)
|
178
|
-
echo 1>&2 "\
|
179
|
-
WARNING: \`$1' is $msg. You should only need it if
|
180
|
-
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
181
|
-
You might want to install the \`Automake' and \`Perl' packages.
|
182
|
-
Grab them from any GNU archive site."
|
183
|
-
find . -type f -name Makefile.am -print |
|
184
|
-
sed 's/\.am$/.in/' |
|
185
|
-
while read f; do touch "$f"; done
|
186
|
-
;;
|
187
|
-
|
188
|
-
autom4te*)
|
189
|
-
echo 1>&2 "\
|
190
|
-
WARNING: \`$1' is needed, but is $msg.
|
191
|
-
You might have modified some files without having the
|
192
|
-
proper tools for further handling them.
|
193
|
-
You can get \`$1' as part of \`Autoconf' from any GNU
|
194
|
-
archive site."
|
195
|
-
|
196
|
-
file=`echo "$*" | sed -n "$sed_output"`
|
197
|
-
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
198
|
-
if test -f "$file"; then
|
199
|
-
touch $file
|
200
|
-
else
|
201
|
-
test -z "$file" || exec >$file
|
202
|
-
echo "#! /bin/sh"
|
203
|
-
echo "# Created by GNU Automake missing as a replacement of"
|
204
|
-
echo "# $ $@"
|
205
|
-
echo "exit 0"
|
206
|
-
chmod +x $file
|
207
|
-
exit 1
|
208
|
-
fi
|
209
|
-
;;
|
210
|
-
|
211
|
-
bison*|yacc*)
|
212
|
-
echo 1>&2 "\
|
213
|
-
WARNING: \`$1' $msg. You should only need it if
|
214
|
-
you modified a \`.y' file. You may need the \`Bison' package
|
215
|
-
in order for those modifications to take effect. You can get
|
216
|
-
\`Bison' from any GNU archive site."
|
217
|
-
rm -f y.tab.c y.tab.h
|
218
|
-
if test $# -ne 1; then
|
219
|
-
eval LASTARG=\${$#}
|
220
|
-
case $LASTARG in
|
221
|
-
*.y)
|
222
|
-
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
223
|
-
if test -f "$SRCFILE"; then
|
224
|
-
cp "$SRCFILE" y.tab.c
|
225
|
-
fi
|
226
|
-
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
227
|
-
if test -f "$SRCFILE"; then
|
228
|
-
cp "$SRCFILE" y.tab.h
|
229
|
-
fi
|
230
|
-
;;
|
231
|
-
esac
|
232
|
-
fi
|
233
|
-
if test ! -f y.tab.h; then
|
234
|
-
echo >y.tab.h
|
235
|
-
fi
|
236
|
-
if test ! -f y.tab.c; then
|
237
|
-
echo 'main() { return 0; }' >y.tab.c
|
238
|
-
fi
|
239
|
-
;;
|
240
|
-
|
241
|
-
lex*|flex*)
|
242
|
-
echo 1>&2 "\
|
243
|
-
WARNING: \`$1' is $msg. You should only need it if
|
244
|
-
you modified a \`.l' file. You may need the \`Flex' package
|
245
|
-
in order for those modifications to take effect. You can get
|
246
|
-
\`Flex' from any GNU archive site."
|
247
|
-
rm -f lex.yy.c
|
248
|
-
if test $# -ne 1; then
|
249
|
-
eval LASTARG=\${$#}
|
250
|
-
case $LASTARG in
|
251
|
-
*.l)
|
252
|
-
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
253
|
-
if test -f "$SRCFILE"; then
|
254
|
-
cp "$SRCFILE" lex.yy.c
|
255
|
-
fi
|
256
|
-
;;
|
257
|
-
esac
|
258
|
-
fi
|
259
|
-
if test ! -f lex.yy.c; then
|
260
|
-
echo 'main() { return 0; }' >lex.yy.c
|
261
|
-
fi
|
262
|
-
;;
|
263
|
-
|
264
|
-
help2man*)
|
265
|
-
echo 1>&2 "\
|
266
|
-
WARNING: \`$1' is $msg. You should only need it if
|
267
|
-
you modified a dependency of a manual page. You may need the
|
268
|
-
\`Help2man' package in order for those modifications to take
|
269
|
-
effect. You can get \`Help2man' from any GNU archive site."
|
270
|
-
|
271
|
-
file=`echo "$*" | sed -n "$sed_output"`
|
272
|
-
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
273
|
-
if test -f "$file"; then
|
274
|
-
touch $file
|
275
|
-
else
|
276
|
-
test -z "$file" || exec >$file
|
277
|
-
echo ".ab help2man is required to generate this page"
|
278
|
-
exit $?
|
279
|
-
fi
|
280
|
-
;;
|
281
|
-
|
282
|
-
makeinfo*)
|
283
|
-
echo 1>&2 "\
|
284
|
-
WARNING: \`$1' is $msg. You should only need it if
|
285
|
-
you modified a \`.texi' or \`.texinfo' file, or any other file
|
286
|
-
indirectly affecting the aspect of the manual. The spurious
|
287
|
-
call might also be the consequence of using a buggy \`make' (AIX,
|
288
|
-
DU, IRIX). You might want to install the \`Texinfo' package or
|
289
|
-
the \`GNU make' package. Grab either from any GNU archive site."
|
290
|
-
# The file to touch is that specified with -o ...
|
291
|
-
file=`echo "$*" | sed -n "$sed_output"`
|
292
|
-
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
293
|
-
if test -z "$file"; then
|
294
|
-
# ... or it is the one specified with @setfilename ...
|
295
|
-
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
296
|
-
file=`sed -n '
|
297
|
-
/^@setfilename/{
|
298
|
-
s/.* \([^ ]*\) *$/\1/
|
299
|
-
p
|
300
|
-
q
|
301
|
-
}' $infile`
|
302
|
-
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
303
|
-
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
304
|
-
fi
|
305
|
-
# If the file does not exist, the user really needs makeinfo;
|
306
|
-
# let's fail without touching anything.
|
307
|
-
test -f $file || exit 1
|
308
|
-
touch $file
|
309
|
-
;;
|
310
|
-
|
311
|
-
*)
|
312
|
-
echo 1>&2 "\
|
313
|
-
WARNING: \`$1' is needed, and is $msg.
|
314
|
-
You might have modified some files without having the
|
315
|
-
proper tools for further handling them. Check the \`README' file,
|
316
|
-
it often tells you about the needed prerequisites for installing
|
317
|
-
this package. You may also peek at any GNU archive site, in case
|
318
|
-
some other package would contain this missing \`$1' program."
|
319
|
-
exit 1
|
320
|
-
;;
|
321
|
-
esac
|
322
|
-
|
323
|
-
exit 0
|
324
|
-
|
325
|
-
# Local variables:
|
326
|
-
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
327
|
-
# time-stamp-start: "scriptversion="
|
328
|
-
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
329
|
-
# time-stamp-time-zone: "UTC"
|
330
|
-
# time-stamp-end: "; # UTC"
|
331
|
-
# End:
|