Add buildRevisions.sh script
parent
4c8158d1d1
commit
251fafe63f
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This is a "throw away" script for building lots of revisions
|
||||||
|
# You're expected to modify this script to perform whatever test
|
||||||
|
# is appropriate for your revision investigation
|
||||||
|
|
||||||
|
##
|
||||||
|
# test a sequence of builds
|
||||||
|
# to list a list of revisions, use for "r in 3800 3820 3877; do"
|
||||||
|
for r in $(seq 3800 100 3899); do
|
||||||
|
echo ------------- $r begin --------------
|
||||||
|
##
|
||||||
|
# get the code
|
||||||
|
R="../../../$r"
|
||||||
|
if [ -e $R ]; then rm -rf $R ; fi
|
||||||
|
svn export svn://dev.exiv2.org/svn/trunk --revision $r $R | wc
|
||||||
|
pushd $R
|
||||||
|
##
|
||||||
|
# build and install it
|
||||||
|
echo $PWD
|
||||||
|
make config 2>/dev/null | wc
|
||||||
|
./configure | wc
|
||||||
|
make -j 2>&1 | wc
|
||||||
|
sudo make install | wc
|
||||||
|
make -j samples | wc
|
||||||
|
echo build = $(exiv2 -vV | grep -e svn -e dll) $(ls -alt $(which exiv2))
|
||||||
|
|
||||||
|
##
|
||||||
|
# test the build
|
||||||
|
T=tst.tiff
|
||||||
|
curl --silent -O http://dev.exiv2.org/attachments/download/1004/$T
|
||||||
|
exiv2 -v -M"set Exif.Image.Software revision $r" $T
|
||||||
|
exiv2 -pa --grep Software $T
|
||||||
|
|
||||||
|
popd > /dev/null
|
||||||
|
echo ------------- $r end --------------
|
||||||
|
echo ''
|
||||||
|
done
|
||||||
|
|
||||||
|
# That's all Folks!
|
||||||
|
##
|
||||||
|
|
Loading…
Reference in New Issue