Annotation of /trunk/xf86-video-trident/make-git-snapshot.sh
Parent Directory | Revision Log
Revision 2103 -
(hide annotations)
(download)
(as text)
Mon Mar 11 09:33:27 2013 UTC (11 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 448 byte(s)
Mon Mar 11 09:33:27 2013 UTC (11 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 448 byte(s)
-added git snapshot script
1 | niro | 2103 | #!/bin/sh |
2 | |||
3 | # Usage: ./make-git-snapshot.sh [COMMIT] | ||
4 | # | ||
5 | # to make a snapshot of the given tag/branch. Defaults to HEAD. | ||
6 | |||
7 | MODULE=xf86-video-trident | ||
8 | DIRNAME=${MODULE}-1.3.6_$( date +%Y%m%d ) | ||
9 | |||
10 | echo DIRNAME $DIRNAME | ||
11 | echo HEAD ${1:-HEAD} | ||
12 | |||
13 | rm -rf $DIRNAME | ||
14 | |||
15 | git clone git://git.freedesktop.org/git/xorg/driver/${MODULE} $DIRNAME | ||
16 | |||
17 | GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \ | ||
18 | | bzip2 > $DIRNAME.tar.bz2 | ||
19 | |||
20 | # rm -rf $DIRNAME |