Magellan Linux

Contents of /trunk/xorg-server/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 620 - (show annotations) (download) (as text)
Thu May 29 14:51:01 2008 UTC (15 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 400 byte(s)
-update version to 1.4.99.902

1 #!/bin/sh
2
3 DIRNAME=xorg-server-1.4.99.902_$( date +%Y%m%d )
4
5 rm -rf $DIRNAME
6 git clone -n git://git.freedesktop.org/git/xorg/xserver $DIRNAME
7 cd $DIRNAME
8 if [ -z "$1" ]; then
9 git checkout --track -b server-1.5-branch origin/server-1.5-branch
10 else
11 git checkout $1
12 fi
13 git log | head -1 | awk '{ print $2 }' > ../commitid
14 git repack -a -d
15 cd ..
16 tar jcf $DIRNAME.tar.bz2 $DIRNAME
17 rm -rf $DIRNAME