Commit 3e6645e2 authored by Pavel Vaynerman's avatar Pavel Vaynerman

new version (add prepare_tarball)

parent 3c3d5ae9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 0.97 Version: 0.97
Release: eter6 Release: eter9
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -178,6 +178,15 @@ rm -f %buildroot%_libdir/*.la ...@@ -178,6 +178,15 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc %exclude %_pkgconfigdir/libUniSet.pc
%changelog %changelog
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter8
- new build
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter7
- new build
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter6
- new build
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter5 * Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter5
- minor fixes in SM - minor fixes in SM
......
...@@ -26,6 +26,35 @@ EOF ...@@ -26,6 +26,35 @@ EOF
echo "inform mail sent to $MAILTO" echo "inform mail sent to $MAILTO"
} }
prepare_tarball()
{
build_rpms_name $SPECNAME
NAMEVER=$BASENAME-$VERSION
WDPROJECT=$(pwd)
TARNAME=$NAMEVER.tar
DESTDIR=$TMPDIR/$NAMEVER
RET=0
mkdir -p $DESTDIR
rm -rf $DESTDIR/*
cp -r $WDPROJECT/* $DESTDIR/
cd $DESTDIR/
make distclean
[ -a ./autogen.sh ] && ./autogen.sh
rm -rf autom4te.cache/
rm -rf .git
rm -rf .gear
echo "Make tarball $TARNAME ... from $DESTDIR"
mkdir -p $RPMSOURCEDIR/
$NICE tar cf $RPMSOURCEDIR/$TARNAME ../$NAMEVER $ETERTARPARAM || RET=1
rm -rf $DESTDIR
cd -
[ $RET ] && echo "build ok" || fatal "Can't create tarball"
}
function cp2ftp() function cp2ftp()
{ {
mkdir -p $BACKUPDIR mkdir -p $BACKUPDIR
...@@ -41,7 +70,7 @@ export BUILDNAME=$BASENAME-$VERSION-$RELEASE ...@@ -41,7 +70,7 @@ export BUILDNAME=$BASENAME-$VERSION-$RELEASE
add_changelog_helper "- new build" $SPECNAME add_changelog_helper "- new build" $SPECNAME
#prepare_tarball || fatal "Can't prepare tarball" prepare_tarball || fatal "Can't prepare tarball"
rpmbb $SPECNAME || fatal "Can't build" rpmbb $SPECNAME || fatal "Can't build"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment