Magellan Linux

Contents of /trunk/ffmpeg/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


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