#!/bin/sh gitname=slapt-get pkgname=slapt-get gitrev=3e25960 pkgver=git$gitrev CWD=$(pwd) ( cd /data/GitHub/$gitname git pull cat < .gitattributes /data /m4 ./.gitattributes EOF cat .gitattributes #gitrev=git$(git log -n 1 --format=format:%h .) git archive --worktree-attributes --prefix=${pkgname}-$pkgver/ $gitrev| xz > $CWD/${pkgname}-$pkgver.tar.xz #rm .gitattributes )