4 |
# |
# |
5 |
# to make a snapshot of the given tag/branch. Defaults to HEAD. |
# to make a snapshot of the given tag/branch. Defaults to HEAD. |
6 |
|
|
7 |
DIRNAME=mplayer-1.0_git$( date +%Y%m%d ) |
DIRNAME=mplayer-1.2_git$( date +%Y%m%d ) |
8 |
|
|
9 |
echo DIRNAME ${DIRNAME} |
echo DIRNAME ${DIRNAME} |
10 |
echo HEAD ${1:-HEAD} |
echo HEAD ${1:-HEAD} |
14 |
# checkout mplayer |
# checkout mplayer |
15 |
git clone git://git.mplayerhq.hu/mplayer ${DIRNAME} |
git clone git://git.mplayerhq.hu/mplayer ${DIRNAME} |
16 |
|
|
|
# check out git ffmpeg |
|
|
git clone git://git.libav.org/libav.git ${DIRNAME}/ffmpeg |
|
|
|
|
17 |
GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} \ |
GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} \ |
18 |
| bzip2 > ${DIRNAME}.tar.bz2 |
| bzip2 > ${DIRNAME}.tar.bz2 |
19 |
|
|