libdrm package update
Signed-off-by: guibuilder_pel7ppc64lebuilder0 <guibuilder@powerel.org>master
parent
e7c6836e80
commit
bd14be5270
|
@ -1,31 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
proto=$1
|
||||
branch=$2
|
||||
# Usage: ./make-git-snapshot.sh [COMMIT]
|
||||
#
|
||||
# to make a snapshot of the given tag/branch. Defaults to HEAD.
|
||||
# Point env var REF to a local mesa repo to reduce clone time.
|
||||
|
||||
if [ -z "$proto" ]; then
|
||||
echo "Usage: $0 <proto name> [<branch>]"
|
||||
exit 1
|
||||
fi
|
||||
DIRNAME=libdrm-$( date +%Y%m%d )
|
||||
|
||||
dirname=$proto-$( date +%Y%m%d )
|
||||
echo REF ${REF:+--reference $REF}
|
||||
echo DIRNAME $DIRNAME
|
||||
echo HEAD ${1:-HEAD}
|
||||
|
||||
rm -rf $dirname
|
||||
git clone git://git.freedesktop.org/git/xorg/proto/$proto $dirname
|
||||
cd $dirname
|
||||
if [ -z "$branch" ]; then
|
||||
git log | head -1
|
||||
else
|
||||
git checkout $branch
|
||||
fi
|
||||
sha=`git rev-list --max-count=1 --abbrev-commit HEAD`
|
||||
git repack -a -d
|
||||
cd ..
|
||||
rm -rf $DIRNAME
|
||||
|
||||
# append sha to dirname
|
||||
mv $dirname $dirname-git$sha
|
||||
dirname=$dirname-git$sha
|
||||
tarball=$dirname.tar.bz2
|
||||
tar jcf $tarball $dirname
|
||||
rm -rf $dirname
|
||||
echo "$tarball is now available"
|
||||
git clone ${REF:+--reference $REF} \
|
||||
git://git.freedesktop.org/git/mesa/drm $DIRNAME
|
||||
|
||||
GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
|
||||
| bzip2 > $DIRNAME.tar.bz2
|
||||
|
||||
# rm -rf $DIRNAME
|
||||
|
|
Loading…
Reference in New Issue