Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 540 - (hide annotations) (download) (as text)
Wed Mar 26 23:41:17 2008 UTC (16 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 400 byte(s)
-added git script

1 niro 540 #!/bin/sh
2    
3     DIRNAME=xorg-server-1.4.99.901_$( 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