Magellan Linux

Annotation of /trunk/thunar-vcs-plugin/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1575 - (hide annotations) (download) (as text)
Fri Nov 25 14:05:48 2011 UTC (12 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 458 byte(s)
git script
1 niro 1575 #!/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     DIRNAME=thunar-vcs-plugin-0.1.4_git$( date +%Y%m%d )
8    
9     echo DIRNAME ${DIRNAME}
10     echo HEAD ${1:-HEAD}
11    
12     rm -rf ${DIRNAME}
13    
14     # checkout
15     git clone git://git.xfce.org/thunar-plugins/thunar-vcs-plugin ${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}