Magellan Linux

Annotation of /trunk/mplayer/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1451 - (hide annotations) (download) (as text)
Wed Jul 27 23:35:57 2011 UTC (13 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 515 byte(s)
added git snapshot script
1 niro 1451 #!/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=mplayer-1.0_git$( date +%Y%m%d )
8    
9     echo DIRNAME ${DIRNAME}
10     echo HEAD ${1:-HEAD}
11    
12     rm -rf ${DIRNAME}
13    
14     # checkout mplayer
15     git clone git://git.mplayerhq.hu/mplayer ${DIRNAME}
16    
17     # check out git ffmpeg
18     git clone git://git.libav.org/libav.git ${DIRNAME}/ffmpeg
19    
20     GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} \
21     | bzip2 > ${DIRNAME}.tar.bz2
22    
23     # rm -rf ${DIRNAME}