#!/bin/sh gitname=aom pkgname=libaom pkgver=git3eb3fe7208 CWD=$(pwd) ( cd /data/GitHub/$gitname git pull cat < .gitattributes .gitattributes export-ignore .git export-ignore .git .gitignore EOF git archive --worktree-attributes --prefix=$pkgname-$pkgver/ master | xz > $CWD/$pkgname-$pkgver.tar.xz rm .gitattributes )