#!/bin/sh gitname=gslapt pkgname=gslapt gitrev=0c576da 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}-git$girev/ $gitrev | xz > $CWD/${pkgname}-git${gitrev}.tar.xz rm .gitattributes )