Blame SOURCES/make-git-snapshot.sh

15084c
#!/bin/sh
15084c
15084c
# Usage: ./make-git-snapshot.sh [COMMIT]
15084c
#
15084c
# to make a snapshot of the given tag/branch.  Defaults to HEAD.
15084c
# Point env var REF to a local mesa repo to reduce clone time.
15084c
15084c
DIRNAME=xf86-video-nouveau-$( date +%Y%m%d )
15084c
15084c
echo REF ${REF:+--reference $REF}
15084c
echo DIRNAME $DIRNAME
15084c
echo HEAD ${1:-HEAD}
15084c
15084c
rm -rf $DIRNAME
15084c
15084c
git clone ${REF:+--reference $REF} \
15084c
	git://git.freedesktop.org/git/nouveau/xf86-video-nouveau $DIRNAME
15084c
15084c
GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
15084c
	| xz > $DIRNAME.tar.xz
15084c
15084c
# rm -rf $DIRNAME