Mercurial > mplayer.hg
annotate DOCS/tech/release.sh @ 35737:1bdc6cea0722
Cosmetic: Adjust indent.
author | ib |
---|---|
date | Wed, 23 Jan 2013 14:10:24 +0000 |
parents | c8d891e708dc |
children |
rev | line source |
---|---|
34802 | 1 #!/bin/bash |
2 # will create checkouts and tarballs in the current dir | |
3 ver=1.1 | |
4 dst=MPlayer-$ver | |
5 svnurl=svn://svn.mplayerhq.hu/mplayer/trunk | |
6 #svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver | |
7 | |
34898 | 8 rm -rf $dst/ $dst-DOCS/ $dst.tar* |
34802 | 9 |
34894
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
10 svn export $svnurl $dst/ |
34898 | 11 # branches should contain a VERSION file, but |
12 # "previews" generated from trunk need it. | |
34894
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
13 if ! test -e $dst/VERSION ; then |
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
14 echo $ver > $dst/VERSION |
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
15 fi |
34802 | 16 |
17 # create HTML docs | |
18 cp -a $dst/ $dst-DOCS/ | |
19 pushd $dst-DOCS/ | |
20 mkdir -p ffmpeg/libavutil | |
21 ./configure --yasm='' --language=all | |
22 make html-chunked | |
23 popd | |
24 mv $dst-DOCS/DOCS/HTML $dst/DOCS | |
25 rm -rf $dst-DOCS/ | |
26 | |
27 # git archive unfortunately is refused | |
35251 | 28 git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git $dst/ffmpeg |
34803
2f751a18aaac
release script: also remove .gitignore from MPlayer SVN.
reimar
parents:
34802
diff
changeset
|
29 rm -rf $dst/.git* $dst/ffmpeg/.git* |
34802 | 30 |
34898 | 31 # create .tar.gz and .tar.xz files |
34894
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
32 tar --owner=0 --group=0 -cf $dst.tar $dst/ |
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
33 xz -k $dst.tar |
d67796f04f99
Small improvements to release script, create xz and gzip files etc.
reimar
parents:
34803
diff
changeset
|
34 gzip -9 $dst.tar |
34898 | 35 |
36 # generate checksums/signatures | |
37 md5sum $dst.tar.xz > $dst.tar.xz.md5 | |
38 sha1sum $dst.tar.xz > $dst.tar.xz.sha1 | |
39 md5sum $dst.tar.gz > $dst.tar.gz.md5 | |
40 sha1sum $dst.tar.gz > $dst.tar.gz.sha1 | |
41 gpg -a --detach-sign $dst.tar.xz | |
42 gpg -a --detach-sign $dst.tar.gz |