Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 52cf6be2c362231a6e2cf2050605c004 > files > 1

strigi-0.7.8-1.mga3.src.rpm

#! /bin/bash
# script to create a release tarball for strigi
# this is needed since the project is split up in separate git moduls
TAG=0.7.7
# First pull git
git clone git://anongit.kde.org/strigi
pushd strigi
for f in libstreams libstreamanalyzer strigidaemon strigiclient strigiutils; do
git clone git://anongit.kde.org/$f
done
# & now create the archive
git archive --format=tar --prefix=strigi-$TAG/ -o strigi-$TAG.tar v$TAG
for f in libstreams libstreamanalyzer strigidaemon strigiclient strigiutils; do
  pushd $f
  git archive --format=tar --prefix=strigi-$TAG/$f/ -o tmptar v$TAG
  tar Af ../strigi-$TAG.tar tmptar
  rm tmptar
  popd
done
xz -9 strigi-$TAG.tar
mv strigi-$TAG.tar.xz ../strigi-$TAG.tar.xz
# once it's done clear the git folder
popd
rm -rf strigi