You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
384 B
Bash

#! /bin/sh
# Generate variables used for the sample.html page
# The appropriate exiv2 must be built
exiv2=$EXIV2HOME/bin/exiv2
vp=../../var
cd html/include/ >/dev/null 2>&1
$exiv2 img_1771.jpg > $vp/__sample-p__
$exiv2 -pt img_1771.jpg > $vp/__sample-pt__
$exiv2 -h > $vp/sample-h.tmp
sed -e 's/</\&lt;/g' -e 's/>/\&gt;/g' $vp/sample-h.tmp > $vp/__sample-h__
rm -f $vp/sample-h.tmp