#!/bin/sh
gitname=flite
pkgname=flite
pkgver=2.1+git$(date -u +%Y%m%d)
CWD=$(pwd)
( cd /data/GitHub/$gitname
git pull
cat <<EOF > .gitattributes
.gitattributes export-ignore
.git export-ignore
EOF
git archive --worktree-attributes --prefix=$pkgname-$pkgver/ master | xz > $CWD/$pkgname-$pkgver.tar.xz
rm .gitattributes
)
