Might be the last one. Probably not. I want to fix the last-minute surprised of #1219.
This commit is contained in:
parent
e11900847e
commit
b354ad8b2a
@ -1,22 +0,0 @@
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the author may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
10
README.md
10
README.md
@ -171,7 +171,7 @@ In general you need to do the following:
|
||||
|
||||
1) Application code should be written in C++98 and include exiv2 headers:
|
||||
|
||||
```C++
|
||||
```cpp
|
||||
#include <exiv2/exiv2.hpp>
|
||||
```
|
||||
|
||||
@ -430,7 +430,7 @@ $
|
||||
|
||||
Exiv2 respects the symbol `NDEBUG` which is set only for Release builds. There are sequences of code which are defined within:
|
||||
|
||||
```C++
|
||||
```cpp
|
||||
#ifdef EXIV2_DEBUG_MESSAGES
|
||||
....
|
||||
#endif
|
||||
@ -562,7 +562,7 @@ The level of thread safety within Exiv2 varies depending on the type of metadata
|
||||
|
||||
Therefore, multi-threaded applications need to ensure that these two XMP functions are serialized, e.g., by calling them from an initialization section which is run before any threads are started. All exiv2 sample applications begin with:
|
||||
|
||||
```c++
|
||||
```cpp
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
Exiv2::XmpParser::initialize();
|
||||
@ -583,7 +583,7 @@ Adobe's XMPsdk is generally thread-safe, however it has to be initialized and te
|
||||
|
||||
The exiv2 command-line program and sample applications call the following at the outset:
|
||||
|
||||
```c++
|
||||
```cpp
|
||||
Exiv2::XmpParser::initialize();
|
||||
::atexit(Exiv2::XmpParser::terminate);
|
||||
```
|
||||
@ -1245,5 +1245,5 @@ $ sudo pkg install developer/gcc-7
|
||||
|
||||
[TOC](#TOC)
|
||||
|
||||
Written by Robin Mills<br>robin@clanmills.com<br>Updated: 2020-05-21
|
||||
Written by Robin Mills<br>robin@clanmills.com<br>Updated: 2020-05-25
|
||||
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 BASENAME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
bin=../../../src
|
||||
$bin/exiv2 -V
|
||||
|
||||
exiv2version="`$bin/exiv2 -V | sed -n '1 s,^exiv2 [^ ]* \([^ ]*\).*,\1,p'`"
|
||||
|
||||
rm -f $1.xmp
|
||||
$bin/exiv2 -f -eX $1.eps
|
||||
|
||||
cp $1.eps $1.eps.delxmp
|
||||
if $bin/exiv2 -dx $1.eps.delxmp; then
|
||||
sed -i "s,%Exiv2Version: $exiv2version,%Exiv2Version: _Exiv2Version_," $1.eps.delxmp
|
||||
else
|
||||
rm -f $1.eps.delxmp
|
||||
fi
|
||||
|
||||
cp $1.eps $1.eps.newxmp
|
||||
cp eps-test-newxmp.exv $1.eps.exv
|
||||
if $bin/exiv2 -ix $1.eps.newxmp; then
|
||||
sed -i "s,%Exiv2Version: $exiv2version,%Exiv2Version: _Exiv2Version_," $1.eps.newxmp
|
||||
else
|
||||
rm -f $1.eps.newxmp
|
||||
fi
|
||||
rm -f $1.eps.exv
|
||||
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$#" -ne 2 ] ; then
|
||||
echo "Usage: $0 file1.eps file2.eps"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
suffix='0a8baf61-6321-4899-86e8-8bf9ebd002b3'
|
||||
|
||||
sed 's/\r$/<CR>/; s/$/<LF>/; s/\r/<CR>\n/g' < "$1" > "$1.$suffix"
|
||||
sed 's/\r$/<CR>/; s/$/<LF>/; s/\r/<CR>\n/g' < "$2" > "$2.$suffix"
|
||||
|
||||
diff -a -u "$1.$suffix" "$2.$suffix"
|
||||
exitcode="$?"
|
||||
|
||||
rm -f "$1.$suffix" "$2.$suffix"
|
||||
|
||||
exit "$exitcode"
|
||||
Loading…
Reference in New Issue
Block a user