libis-format 0.9.32 → 0.9.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/types.yml +30 -16
- data/lib/libis/format/config.rb +7 -18
- data/lib/libis/format/converter/image_converter.rb +6 -0
- data/lib/libis/format/droid.rb +82 -25
- data/lib/libis/format/extension_identification.rb +55 -0
- data/lib/libis/format/fido.rb +57 -72
- data/lib/libis/format/file_tool.rb +76 -0
- data/lib/libis/format/identification_tool.rb +174 -0
- data/lib/libis/format/identifier.rb +129 -117
- data/lib/libis/format/type_database.rb +36 -5
- data/lib/libis/format/version.rb +1 -1
- data/lib/libis/format.rb +3 -0
- data/libis-format.gemspec +2 -1
- data/spec/converter_spec.rb +6 -4
- data/spec/identifier_spec.rb +125 -34
- metadata +21 -126
- data/tools/droid/DROID_SignatureFile_V90.xml +0 -40182
- data/tools/droid/container-signature-20170330.xml +0 -3584
- data/tools/droid/droid-command-line-6.3.jar +0 -0
- data/tools/droid/droid.bat +0 -152
- data/tools/droid/droid.sh +0 -152
- data/tools/droid/lib/XmlSchema-1.4.7.jar +0 -0
- data/tools/droid/lib/activation-1.1.jar +0 -0
- data/tools/droid/lib/aopalliance-1.0.jar +0 -0
- data/tools/droid/lib/asm-2.2.3.jar +0 -0
- data/tools/droid/lib/aspectjrt-1.8.7.jar +0 -0
- data/tools/droid/lib/aspectjweaver-1.8.7.jar +0 -0
- data/tools/droid/lib/bcmail-jdk14-138.jar +0 -0
- data/tools/droid/lib/bcprov-jdk14-138.jar +0 -0
- data/tools/droid/lib/beansbinding-1.2.1.jar +0 -0
- data/tools/droid/lib/byteseek-2.0.3.jar +0 -0
- data/tools/droid/lib/cglib-nodep-2.2.2.jar +0 -0
- data/tools/droid/lib/classmate-1.0.0.jar +0 -0
- data/tools/droid/lib/commons-cli-1.2.jar +0 -0
- data/tools/droid/lib/commons-codec-1.10.jar +0 -0
- data/tools/droid/lib/commons-collections-3.2.2.jar +0 -0
- data/tools/droid/lib/commons-compress-1.4.1.jar +0 -0
- data/tools/droid/lib/commons-configuration-1.8.jar +0 -0
- data/tools/droid/lib/commons-dbcp-1.4.jar +0 -0
- data/tools/droid/lib/commons-httpclient-3.1.jar +0 -0
- data/tools/droid/lib/commons-io-2.4.jar +0 -0
- data/tools/droid/lib/commons-lang-2.6.jar +0 -0
- data/tools/droid/lib/commons-logging-1.1.1.jar +0 -0
- data/tools/droid/lib/commons-pool-1.5.4.jar +0 -0
- data/tools/droid/lib/cxf-api-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-schemas-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-utilities-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-soap-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-xml-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-core-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-databinding-jaxb-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-jaxws-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-simple-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-transports-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-ws-addr-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-tools-common-2.2.12.jar +0 -0
- data/tools/droid/lib/de.huxhorn.lilith.3rdparty.flyingsaucer.core-renderer-8RC1.jar +0 -0
- data/tools/droid/lib/derby-10.10.2.0.jar +0 -0
- data/tools/droid/lib/droid-container-6.3.jar +0 -0
- data/tools/droid/lib/droid-core-6.3.jar +0 -0
- data/tools/droid/lib/droid-core-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/droid-export-6.3.jar +0 -0
- data/tools/droid/lib/droid-export-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/droid-help-6.3.jar +0 -0
- data/tools/droid/lib/droid-report-6.3.jar +0 -0
- data/tools/droid/lib/droid-report-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/droid-results-6.3.jar +0 -0
- data/tools/droid/lib/geronimo-activation_1.1_spec-1.0.2.jar +0 -0
- data/tools/droid/lib/geronimo-annotation_1.0_spec-1.1.1.jar +0 -0
- data/tools/droid/lib/geronimo-javamail_1.4_spec-1.6.jar +0 -0
- data/tools/droid/lib/geronimo-jaxws_2.1_spec-1.0.jar +0 -0
- data/tools/droid/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
- data/tools/droid/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar +0 -0
- data/tools/droid/lib/hibernate-validator-5.1.0.Final.jar +0 -0
- data/tools/droid/lib/itext-2.0.8.jar +0 -0
- data/tools/droid/lib/javahelp-2.0.05.jar +0 -0
- data/tools/droid/lib/jaxb-api-2.1.jar +0 -0
- data/tools/droid/lib/jaxb-impl-2.1.13.jar +0 -0
- data/tools/droid/lib/jboss-logging-3.1.3.GA.jar +0 -0
- data/tools/droid/lib/joda-time-1.6.2.jar +0 -0
- data/tools/droid/lib/jra-1.0-alpha-4.jar +0 -0
- data/tools/droid/lib/jta-1.1.jar +0 -0
- data/tools/droid/lib/jwat-arc-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-archive-common-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-common-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-gzip-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-warc-1.0.2.jar +0 -0
- data/tools/droid/lib/log4j-1.2.13.jar +0 -0
- data/tools/droid/lib/neethi-2.0.4.jar +0 -0
- data/tools/droid/lib/opencsv-2.3.jar +0 -0
- data/tools/droid/lib/org-netbeans-swing-outline-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-lookup-7.2.jar +0 -0
- data/tools/droid/lib/poi-3.13.jar +0 -0
- data/tools/droid/lib/saaj-api-1.3.jar +0 -0
- data/tools/droid/lib/saaj-impl-1.3.2.jar +0 -0
- data/tools/droid/lib/slf4j-api-1.4.2.jar +0 -0
- data/tools/droid/lib/slf4j-log4j12-1.4.2.jar +0 -0
- data/tools/droid/lib/spring-aop-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-beans-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-context-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-core-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-expression-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-jdbc-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-orm-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-tx-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-web-2.5.6.jar +0 -0
- data/tools/droid/lib/stax-api-1.0-2.jar +0 -0
- data/tools/droid/lib/trove4j-3.0.3.jar +0 -0
- data/tools/droid/lib/truezip-6.8.4.jar +0 -0
- data/tools/droid/lib/validation-api-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/wsdl4j-1.6.2.jar +0 -0
- data/tools/droid/lib/wstx-asl-3.2.9.jar +0 -0
- data/tools/droid/lib/xercesImpl-2.9.1.jar +0 -0
- data/tools/droid/lib/xml-apis-1.3.04.jar +0 -0
- data/tools/droid/lib/xml-resolver-1.2.jar +0 -0
- data/tools/droid/lib/xz-1.0.jar +0 -0
- data/tools/fido/__init__.py +0 -50
- data/tools/fido/conf/DROID_SignatureFile-v90.xml +0 -2
- data/tools/fido/conf/container-signature-20170330.xml +0 -3584
- data/tools/fido/conf/dc.xsd +0 -119
- data/tools/fido/conf/dcmitype.xsd +0 -53
- data/tools/fido/conf/dcterms.xsd +0 -383
- data/tools/fido/conf/fido-formats.xsd +0 -173
- data/tools/fido/conf/format_extension_template.xml +0 -105
- data/tools/fido/conf/format_extensions.xml +0 -484
- data/tools/fido/conf/formats-v90.xml +0 -48877
- data/tools/fido/conf/pronom-xml-v90.zip +0 -0
- data/tools/fido/conf/versions.xml +0 -8
- data/tools/fido/fido.bat +0 -4
- data/tools/fido/fido.py +0 -884
- data/tools/fido/fido.sh +0 -5
- data/tools/fido/package.py +0 -96
- data/tools/fido/prepare.py +0 -645
- data/tools/fido/pronomutils.py +0 -200
- data/tools/fido/toxml.py +0 -60
- data/tools/fido/update_signatures.py +0 -183
Binary file
|
data/tools/droid/droid.bat
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
@REM
|
2
|
-
@REM Copyright (c) 2016, The National Archives <pronom@nationalarchives.gsi.gov.uk>
|
3
|
-
@REM All rights reserved.
|
4
|
-
@REM
|
5
|
-
@REM Redistribution and use in source and binary forms, with or without
|
6
|
-
@REM modification, are permitted provided that the following
|
7
|
-
@REM conditions are met:
|
8
|
-
@REM
|
9
|
-
@REM * Redistributions of source code must retain the above copyright
|
10
|
-
@REM notice, this list of conditions and the following disclaimer.
|
11
|
-
@REM
|
12
|
-
@REM * Redistributions in binary form must reproduce the above copyright
|
13
|
-
@REM notice, this list of conditions and the following disclaimer in the
|
14
|
-
@REM documentation and/or other materials provided with the distribution.
|
15
|
-
@REM
|
16
|
-
@REM * Neither the name of the The National Archives nor the
|
17
|
-
@REM names of its contributors may be used to endorse or promote products
|
18
|
-
@REM derived from this software without specific prior written permission.
|
19
|
-
@REM
|
20
|
-
@REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
21
|
-
@REM AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
22
|
-
@REM IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
23
|
-
@REM PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
24
|
-
@REM CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
25
|
-
@REM EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
26
|
-
@REM PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
27
|
-
@REM PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
28
|
-
@REM LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
29
|
-
@REM NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
30
|
-
@REM SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
|
-
@REM
|
32
|
-
|
33
|
-
@ECHO OFF
|
34
|
-
|
35
|
-
REM DROID launch script for Windows systems
|
36
|
-
REM ========================================
|
37
|
-
|
38
|
-
REM Settings:
|
39
|
-
REM =========
|
40
|
-
|
41
|
-
REM Default user dir:
|
42
|
-
REM -----------------
|
43
|
-
REM This is where DROID will place user settings
|
44
|
-
REM If not set, it will default to a directory called ".droid6"
|
45
|
-
REM under the user's home directory.
|
46
|
-
REM Also configure this property using the environment variable: droidUserDir
|
47
|
-
REM Remove the "REM " from the line below and set the working dir path after the "=".
|
48
|
-
REM SET droidUser=
|
49
|
-
|
50
|
-
|
51
|
-
REM Default temporary file dir:
|
52
|
-
REM ---------------------------
|
53
|
-
REM This is where DROID will place temporary working files,
|
54
|
-
REM including decompressed archival files and working profile databases.
|
55
|
-
REM If not set, it will default to the droidUserDir
|
56
|
-
REM (by default, under the user's home directory)
|
57
|
-
REM Also configure this property using the environment variable: droidTempDir
|
58
|
-
REM Remove the "REM " from the line below and set the working dir path after the "=".
|
59
|
-
REM SET droidTemp=
|
60
|
-
|
61
|
-
|
62
|
-
REM Default log dir:
|
63
|
-
REM ----------------
|
64
|
-
REM This is where DROID will write its log files.
|
65
|
-
REM If not set, it will default to a folder called "logs"
|
66
|
-
REM under the droidUserDir.
|
67
|
-
REM Also configure this property using the environment variable: droidLogDir
|
68
|
-
REM Remove the "REM " from the line below and set the log dir path after the "=".
|
69
|
-
REM SET droidLog=
|
70
|
-
|
71
|
-
|
72
|
-
REM Log configuration:
|
73
|
-
REM ------------------
|
74
|
-
REM This is the location of the lo4j configuration file to use.
|
75
|
-
REM By default, it will use a file called "log4j.properties"
|
76
|
-
REM which is found under the droidUserDir.
|
77
|
-
REM Also configure this property using the environment variable: log4j.configuration
|
78
|
-
REM Remove the "REM " from the line below and set the log config file path after the "=".
|
79
|
-
REM SET log4j=
|
80
|
-
|
81
|
-
|
82
|
-
REM Default console logging level:
|
83
|
-
REM ------------------------------
|
84
|
-
REM This allows you to set the default logging level used by
|
85
|
-
REM DROID when logging to the command-line console. If not set,
|
86
|
-
REM it defaults to INFO level logging, unless running in quiet
|
87
|
-
REM mode from the command line, in which case the log level is
|
88
|
-
REM overridden to be ERROR.
|
89
|
-
REM SET logLevel=INFO
|
90
|
-
|
91
|
-
|
92
|
-
REM Maximum memory:
|
93
|
-
REM ---------------
|
94
|
-
REM This is the maximum memory DROID can use in megabytes.
|
95
|
-
REM Remove the "REM " from the line below and set the maximum memory after the "=".
|
96
|
-
REM Also configure this property using the environment variable: droidMemory.
|
97
|
-
REM SET droidMemory=512
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
REM Assemble options
|
102
|
-
REM ================
|
103
|
-
REM Default to using 512 megabytes of memory if no other settings provided:
|
104
|
-
SET DROID_OPTIONS="-Xmx512m"
|
105
|
-
|
106
|
-
IF "%droidMemory%"=="" GOTO UserDir
|
107
|
-
SET DROID_OPTIONS="-Xmx%droidMemory%m"
|
108
|
-
|
109
|
-
:UserDir
|
110
|
-
IF "%droidUser%"=="" GOTO TempDir
|
111
|
-
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidUserDir=%droidUser%"
|
112
|
-
|
113
|
-
:TempDir
|
114
|
-
IF "%droidTemp%"=="" GOTO LogOptions
|
115
|
-
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidTempDir=%droidTemp%"
|
116
|
-
|
117
|
-
:LogOptions
|
118
|
-
IF "%droidLog%"=="" GOTO Log4JConfig
|
119
|
-
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidLogDir=%droidLog%"
|
120
|
-
|
121
|
-
:Log4JConfig
|
122
|
-
IF "%log4j%"=="" GOTO LogLevel
|
123
|
-
SET DROID_OPTIONS=%DROID_OPTIONS% "-Dlog4j.configuration=%log4j%"
|
124
|
-
|
125
|
-
:LogLevel
|
126
|
-
IF "%logLevel%"=="" GOTO RunDROID
|
127
|
-
SET DROID_OPTIONS=%DROID_OPTIONS% "-DconsoleLogThreshold=%logLevel%"
|
128
|
-
|
129
|
-
|
130
|
-
REM Run DROID:
|
131
|
-
REM ==========
|
132
|
-
:RunDROID
|
133
|
-
|
134
|
-
REM Infer DROID_HOME from script location
|
135
|
-
SET DROID_HOME=%~dp0
|
136
|
-
|
137
|
-
REM ECHO Running DROID with the following options: %DROID_OPTIONS%
|
138
|
-
|
139
|
-
REM Choose whether to run the command-line or GUI version of DROID:
|
140
|
-
IF "%1"=="" GOTO NOPARAM
|
141
|
-
|
142
|
-
:PARAM
|
143
|
-
REM Has command-line parameters -- run command-line version:
|
144
|
-
java %DROID_OPTIONS% -jar "%DROID_HOME%droid-command-line-6.3.jar" %*
|
145
|
-
|
146
|
-
GOTO end
|
147
|
-
|
148
|
-
:NOPARAM
|
149
|
-
REM No command-line parameters passed -- run GUI version:
|
150
|
-
start javaw %DROID_OPTIONS% -jar "%DROID_HOME%droid-ui-6.3.jar"
|
151
|
-
|
152
|
-
:END
|
data/tools/droid/droid.sh
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Copyright (c) 2016, The National Archives <pronom@nationalarchives.gsi.gov.uk>
|
4
|
-
# All rights reserved.
|
5
|
-
#
|
6
|
-
# Redistribution and use in source and binary forms, with or without
|
7
|
-
# modification, are permitted provided that the following
|
8
|
-
# conditions are met:
|
9
|
-
#
|
10
|
-
# * Redistributions of source code must retain the above copyright
|
11
|
-
# notice, this list of conditions and the following disclaimer.
|
12
|
-
#
|
13
|
-
# * Redistributions in binary form must reproduce the above copyright
|
14
|
-
# notice, this list of conditions and the following disclaimer in the
|
15
|
-
# documentation and/or other materials provided with the distribution.
|
16
|
-
#
|
17
|
-
# * Neither the name of the The National Archives nor the
|
18
|
-
# names of its contributors may be used to endorse or promote products
|
19
|
-
# derived from this software without specific prior written permission.
|
20
|
-
#
|
21
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
22
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
23
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
24
|
-
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
25
|
-
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
26
|
-
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
27
|
-
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
28
|
-
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
29
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
30
|
-
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
31
|
-
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
-
#
|
33
|
-
|
34
|
-
|
35
|
-
# DROID launch script for UNIX/Linux/Mac systems
|
36
|
-
# ==============================================
|
37
|
-
|
38
|
-
# Settings:
|
39
|
-
# =========
|
40
|
-
|
41
|
-
# Default work dir: droidUserDir
|
42
|
-
# ------------------------------
|
43
|
-
# This is where DROID will place user settings
|
44
|
-
# If not set, it will default to a directory called ".droid6"
|
45
|
-
# under the user's home directory.
|
46
|
-
# It can be configured using this property, or by an environment
|
47
|
-
# variable of the same name.
|
48
|
-
droidUserDir=""
|
49
|
-
|
50
|
-
# Default work dir: droidTempDir
|
51
|
-
# ------------------------------
|
52
|
-
# This is where DROID will create temporary files.
|
53
|
-
# If not set, it will default to a directory called "tmp"
|
54
|
-
# under the droid user directory.
|
55
|
-
# It can be configured using this property, or by an environment
|
56
|
-
# variable of the same name.
|
57
|
-
droidTempDir=""
|
58
|
-
|
59
|
-
# Default log dir: droidLogDir
|
60
|
-
# ----------------------------
|
61
|
-
# This is where DROID will write its log files.
|
62
|
-
# If not set, it will default to a folder called "logs"
|
63
|
-
# under the droidWorkDir.
|
64
|
-
# It can be configured using this property, or by an environment
|
65
|
-
# variable of the same name.
|
66
|
-
droidLogDir=""
|
67
|
-
|
68
|
-
# Log configuration: log4j
|
69
|
-
# ------------------------
|
70
|
-
# This is the location of the lo4j configuration file to use.
|
71
|
-
# By default, it will use a file called "log4j.properties"
|
72
|
-
# which is found under the droidWorkDir.
|
73
|
-
# It can be configured using this setting, or by an environment
|
74
|
-
# variable called log4j.configuration
|
75
|
-
log4j=""
|
76
|
-
|
77
|
-
# Default console logging level
|
78
|
-
# -----------------------------
|
79
|
-
# This allows you to set the default logging level used by DROID
|
80
|
-
# when logging to the command line console. If not set,
|
81
|
-
# it defaults to INFO level logging, unless running in quiet
|
82
|
-
# mode from the command-line, in which case the log level is
|
83
|
-
# overridden to be ERROR.
|
84
|
-
logLevel=""
|
85
|
-
|
86
|
-
# Max memory: droidMemory
|
87
|
-
# -----------------------
|
88
|
-
# The maximum memory for DROID to use in megabytes.
|
89
|
-
droidMemory="512m"
|
90
|
-
|
91
|
-
|
92
|
-
# Run DROID:
|
93
|
-
# ==========
|
94
|
-
|
95
|
-
# Infer DROID_HOME from script location
|
96
|
-
SCRIPT=$0
|
97
|
-
|
98
|
-
# Resolve absolute and relative symlinks
|
99
|
-
while [ -h "$SCRIPT" ]; do
|
100
|
-
LS=$( ls -ld "$SCRIPT" )
|
101
|
-
LINK=$( expr "$LS" : '.*-> \(.*\)$' )
|
102
|
-
if expr "$LINK" : '/.*' > /dev/null; then
|
103
|
-
SCRIPT="$LINK"
|
104
|
-
else
|
105
|
-
SCRIPT="$( dirname "$SCRIPT" )/$LINK"
|
106
|
-
fi
|
107
|
-
done
|
108
|
-
|
109
|
-
# Store absolute location
|
110
|
-
CWD=$( pwd )
|
111
|
-
DROID_HOME="$( cd "$(dirname "$SCRIPT" )" && pwd )"
|
112
|
-
cd "$CWD"
|
113
|
-
|
114
|
-
# Collect settings into runtime options for droid:
|
115
|
-
OPTIONS=""
|
116
|
-
|
117
|
-
# Detect if we are running on a Mac:
|
118
|
-
OS=$( uname )
|
119
|
-
if [ "Darwin" = "$OS" ]; then
|
120
|
-
OPTIONS=$OPTIONS" -Xdock:name=DROID"
|
121
|
-
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.growbox.intrudes=false"
|
122
|
-
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.live-resize=true"
|
123
|
-
fi
|
124
|
-
|
125
|
-
# Build command-line options from the settings above:
|
126
|
-
if [ -n "$droidMemory" ]; then
|
127
|
-
OPTIONS=$OPTIONS" -Xmx$droidMemory"
|
128
|
-
fi
|
129
|
-
if [ -n "$droidUserDir" ]; then
|
130
|
-
OPTIONS=$OPTIONS" -DdroidUserDir=$droidUserDir"
|
131
|
-
fi
|
132
|
-
if [ -n "$droidTempDir" ]; then
|
133
|
-
OPTIONS=$OPTIONS" -DdroidTempDir=$droidTempDir"
|
134
|
-
fi
|
135
|
-
if [ -n "$droidLogDir" ]; then
|
136
|
-
OPTIONS=$OPTIONS" -DdroidLogDir=$droidLogDir"
|
137
|
-
fi
|
138
|
-
if [ -n "$log4j" ]; then
|
139
|
-
OPTIONS=$OPTIONS" -Dlog4j.configuration=$log4j"
|
140
|
-
fi
|
141
|
-
if [ -n "$logLevel" ]; then
|
142
|
-
OPTIONS=$OPTIONS" -DconsoleLogThreshold=$logLevel"
|
143
|
-
fi
|
144
|
-
|
145
|
-
# echo "Running DROID with these options: $OPTIONS $@"
|
146
|
-
|
147
|
-
# Run the command-line or user interface version with the options:
|
148
|
-
if [ $# -gt 0 ]; then
|
149
|
-
java $OPTIONS -jar "$DROID_HOME/droid-command-line-6.3.jar" "$@"
|
150
|
-
else
|
151
|
-
java $OPTIONS -jar "$DROID_HOME/droid-ui-6.3.jar"
|
152
|
-
fi
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/tools/droid/lib/jta-1.1.jar
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/tools/droid/lib/xz-1.0.jar
DELETED
Binary file
|
data/tools/fido/__init__.py
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
"""
|
4
|
-
Format Identification for Digital Objects (FIDO).
|
5
|
-
|
6
|
-
FIDO is a command-line tool to identify the file formats of digital objects.
|
7
|
-
It is designed for simple integration into automated work-flows.
|
8
|
-
"""
|
9
|
-
|
10
|
-
from __future__ import print_function
|
11
|
-
|
12
|
-
from os.path import abspath, dirname, join
|
13
|
-
|
14
|
-
from six.moves import input as rinput
|
15
|
-
|
16
|
-
|
17
|
-
__version__ = '1.3.6'
|
18
|
-
|
19
|
-
|
20
|
-
CONFIG_DIR = join(abspath(dirname(__file__)), 'conf')
|
21
|
-
|
22
|
-
|
23
|
-
def query_yes_no(question, default='yes'):
|
24
|
-
"""
|
25
|
-
Ask a yes/no question via input() and return their answer.
|
26
|
-
|
27
|
-
`question` is a string that is presented to the user. `default` is the
|
28
|
-
presumed answer if the user just hits <Enter>. It must be "yes" (the
|
29
|
-
default), "no" or None (meaning an answer is required of the user).
|
30
|
-
|
31
|
-
The "answer" return value is True for "yes" or False for "no".
|
32
|
-
"""
|
33
|
-
valid = {'yes': True, 'y': True, 'no': False, 'n': False}
|
34
|
-
if default is None:
|
35
|
-
prompt = ' [y/n] '
|
36
|
-
elif default == 'yes':
|
37
|
-
prompt = ' [Y/n] '
|
38
|
-
elif default == 'no':
|
39
|
-
prompt = ' [y/N] '
|
40
|
-
else:
|
41
|
-
raise ValueError('Invalid default answer: "%s"' % default)
|
42
|
-
while True:
|
43
|
-
print(question + prompt, end='')
|
44
|
-
choice = rinput().lower()
|
45
|
-
if default is not None and choice == '':
|
46
|
-
return valid[default]
|
47
|
-
elif choice in valid:
|
48
|
-
return valid[choice]
|
49
|
-
else:
|
50
|
-
print('Please respond with "yes" or "no" (or "y" or "n").')
|