#1279 Preparing release.
parent
be257079f2
commit
6af7c0e1e5
@ -0,0 +1,105 @@
|
||||
#! /bin/sh
|
||||
# Export and build an exiv2 release, 26-Jan-06, ahu
|
||||
|
||||
if [ $# -eq 0 ] ; then
|
||||
echo "Usage: `basename $0` <tagname>|trunk"
|
||||
cat <<EOF
|
||||
|
||||
Export and build an Exiv2 release.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rel=$1
|
||||
(
|
||||
if [ -e $rel ] ; then
|
||||
echo File $rel already exists, exiting...
|
||||
exit 1
|
||||
fi
|
||||
if [ -e exiv2-$rel ] ; then
|
||||
echo File exiv2-$rel already exists, exiting...
|
||||
exit 1
|
||||
fi
|
||||
echo
|
||||
echo ==========================================================================
|
||||
echo Exporting sources, this may take a while...
|
||||
echo
|
||||
path=tags/$rel
|
||||
if [ $rel = trunk ] ; then
|
||||
path=trunk
|
||||
fi
|
||||
svn export svn://dev.exiv2.org/svn/$path
|
||||
version=$(grep AC_INIT $path/config/configure.ac | cut -d, -f 2 | sed -E -e 's/ //g')
|
||||
mv $rel exiv2-$version-$rel
|
||||
rel="$version-$rel"
|
||||
|
||||
echo
|
||||
echo ==========================================================================
|
||||
echo Preparing the source code
|
||||
echo
|
||||
cd exiv2-$rel
|
||||
make config
|
||||
./configure --disable-shared
|
||||
make -j4
|
||||
sudo make install
|
||||
make -j4 samples
|
||||
make doc
|
||||
cd test
|
||||
make
|
||||
cd ..
|
||||
rm -f ABOUT-NLS
|
||||
rm -f .gitignore
|
||||
rm -rf kdevelop/
|
||||
sudo make uninstall
|
||||
make distclean
|
||||
rm -rf test/tmp
|
||||
rm -f Makefile
|
||||
rm -f bootstrap.linux
|
||||
rm -f msvc64\\runner.txt
|
||||
# 01-Dec-2013, ahu: Include CMake files in the distribution
|
||||
#find . -type f -name '*[Cc][Mm][Aa][Kk][Ee]*' | xargs rm -f
|
||||
rm -rf xmpsdk/src/.libs
|
||||
rm -f config.log
|
||||
rm -rf website
|
||||
rm -f jenkins_build.bat jenkins_build.sh
|
||||
rm -f fixxml.sh
|
||||
echo
|
||||
echo ==========================================================================
|
||||
echo Creating source and doc packages
|
||||
echo
|
||||
cd ..
|
||||
tar zcvf exiv2-$rel-doc.tar.gz exiv2-$rel/doc/index.html exiv2-$rel/doc/html exiv2-$rel/doc/include
|
||||
rm -rf exiv2-$rel/doc/html
|
||||
tar zcvf exiv2-$rel.tar.gz exiv2-$rel
|
||||
echo
|
||||
echo ==========================================================================
|
||||
echo Testing the tarball: unpack, build and run tests
|
||||
echo
|
||||
rm -rf exiv2-$rel
|
||||
tar zxvf exiv2-$rel.tar.gz
|
||||
cd exiv2-$rel
|
||||
./configure
|
||||
make -j4
|
||||
sudo make install
|
||||
make -j4 samples
|
||||
echo Exporting tests, this may take a while...
|
||||
svn export svn://dev.exiv2.org/svn/tags/$rel/test
|
||||
du -sk test/
|
||||
cd test
|
||||
make
|
||||
cd ../..
|
||||
echo
|
||||
echo ==========================================================================
|
||||
echo Error-summary
|
||||
echo
|
||||
grep 'Error ' exiv2-buildrelease-$rel.out | grep -v -e'BasicError ' -e'Error 1 (ignored)'
|
||||
|
||||
) 2>&1 | tee exiv2-buildrelease-$rel.out 2>&1
|
||||
|
||||
if [ -e exiv2-$rel.tar.gz ]; then
|
||||
ls -alt exiv2-$rel.tar.gz
|
||||
fi
|
||||
|
||||
# That's all Folks
|
||||
##
|
||||
|
@ -0,0 +1,47 @@
|
||||
#! /bin/sh
|
||||
# Create download tables
|
||||
|
||||
basedir=.
|
||||
version=$(cat $basedir/var/__version__)
|
||||
|
||||
table=__download_table__
|
||||
buttons=__download_buttons__
|
||||
|
||||
rm -rf $basedir/var/$table
|
||||
rm -rf $basedir/var/$buttons
|
||||
|
||||
for P in trunk macosx linux cygwin mingw msvc; do
|
||||
p=exiv2-$version-$P.tar.gz
|
||||
size=$(ls -la html/builds/$p | cut -d' ' -f 5)
|
||||
date=$(stat -c "%w" html/builds/$p | cut -d' ' -f 1)
|
||||
md5=$(md5sum html/builds/$p | cut -d' ' -f 1)
|
||||
|
||||
echo "<tr> \
|
||||
<td>Exiv2 v$version $P</td> \
|
||||
<td><a href=\"builds/${p}\">${p}</a></td> \
|
||||
<td>$size</td> \
|
||||
<td class=\"text-nowrap\">$date</td> \
|
||||
<td>$md5</td> \
|
||||
</tr>" >> $basedir/var/$table
|
||||
|
||||
platform=$P
|
||||
config="64 bit shared libraries"
|
||||
if [ "$platform" == macosx ]; then platform="MacOSX" ; fi
|
||||
if [ "$platform" == cygwin ]; then platform="Cygwin" ; fi
|
||||
if [ "$platform" == mingw ]; then platform="MinGW" ; config="32 bit shared libraries" ; fi
|
||||
if [ "$platform" == msvc ]; then platform="Visual Studio"; config="32 & 64 bit DLLs for MSVC 2005/8/10/12/13/15"; fi
|
||||
if [ "$platform" == linux ]; then platform="Linux" ; fi
|
||||
if [ "$platform" != trunk ]; then
|
||||
echo "<tr><td>$platform<h3></td><td>$config</td> \
|
||||
<td> \
|
||||
<p3 class=\"text-center\"> \
|
||||
<a href=\"builds/$p\" class=\"btn btn-sm btn-success\"> \
|
||||
<span class=\"glyphicon glyphicon-download-alt\" aria-hidden=\"true\"></span> $p \
|
||||
</a> \
|
||||
</p3> \
|
||||
</td></tr>" >> $basedir/var/$buttons
|
||||
fi
|
||||
done
|
||||
|
||||
# That's all Folks!
|
||||
##
|
Loading…
Reference in New Issue