You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
350 B
22 lines
350 B
9 months ago
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
tmp=$(mktemp -d)
|
||
|
|
||
|
trap cleanup EXIT
|
||
|
cleanup() {
|
||
|
set +e
|
||
|
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
|
||
|
}
|
||
|
|
||
|
unset CDPATH
|
||
|
pwd=$(pwd)
|
||
|
date=$(date +%Y%m%d)
|
||
|
|
||
|
pushd "$tmp"
|
||
|
git clone git://git.videolan.org/ffmpeg.git
|
||
|
cd ffmpeg
|
||
|
git archive --prefix="ffmpeg-${date}/" --format=tar master | bzip2 > "$pwd"/ffmpeg-${date}.tar.bz2
|
||
|
popd
|