LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File download.sh of Package trac-plugin-stats (Project devel:tools:scm)

#! /bin/bash

VERSION=0.5
NAME=trac-plugin-stats
DIRNAME=tracstats

git clone --depth 1 --branch master git://github.com/mrjbq7/tracstats.git
pushd $DIRNAME
echo -e ".gitattributes export-ignore\n.gitignore export-ignore" >.gitattributes
git add .gitattributes
git commit -m "get rid of .git*"
git archive --format=tar --prefix=$NAME-$VERSION/ master |bzip2 >../$NAME-$VERSION.tar.bz2
popd
rm -rfv $DIRNAME