xorg-x11-server/make-git-snapshot.sh
Peter Hutterer 66e1b5f9d0 * Mon Jan 12 2009 Peter Hutterer <peter.hutterer@redhat.com> 1.5.99.3-5
- rebase to today's server-1.6-enterleave branch, current 1.6 plus enterleave
  patches.
- drop xserver-1.5.99.3-offscreen-pixmaps.patch - merged upstream
- fix up git checkout in make-git-snapshot.sh to allow a remote branch to be
  specified as $1.
2009-01-12 01:26:08 +00:00

20 lines
433 B
Bash
Executable File

#!/bin/sh
DIRNAME=xorg-server-$( date +%Y%m%d )
rm -rf $DIRNAME
git clone git://git.freedesktop.org/git/xorg/xserver $DIRNAME
cd $DIRNAME
if [ -z "$1" ]; then
git log | head -1
else
git checkout -b $1 origin/$1
fi
git log | head -1 | awk '{ print $2 }' > ../commitid
git repack -a -d
git-config user.email "x@fedoraproject.org"
git-config user.name "Fedora X Ninjas"
cd ..
tar jcf $DIRNAME.tar.bz2 $DIRNAME
rm -rf $DIRNAME