PageRenderTime 101ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 38ms app.codeStats 0ms

/admin/win/update-vlc.sh

http://github.com/tomahawk-player/tomahawk
Shell | 87 lines | 44 code | 11 blank | 32 comment | 1 complexity | 73d30f5f1892483b3688dd37bd436e7b MD5 | raw file
 1#!/bin/bash
 2
 3if [ "$1" = "-c" ] ; then
 4echo "Continuing last download.."
 5rm -rvf vlc/
 6else
 7echo "Update archive..."
 8fi
 9
10rm -rvf vlc/
11
12VLC_TARBALL="vlc.tar.bz2"
13
14echo "Download phonon archive..."
15# wget -c "http://downloads.sourceforge.net/project/vlc/1.1.9/win32/vlc-1.1.9-win32.7z?r=http%3A%2F%2Fwww.videolan.org%2Fvlc%2Fdownload-windows.html&ts=1306272584&use_mirror=leaseweb"
16# wget -c "http://download.tomahawk-player.org/tomahawk-vlc-0.1.zip"
17# wget -c http://people.videolan.org/~jb/phonon/phonon-vlc-last.7z
18# wget -c http://people.videolan.org/~jb/phonon/phonon_phonon-vlc_20111128.7z
19wget -c "http://download.tomahawk-player.org/test/$VLC_TARBALL"
20
21echo "Extract binary..."
22# 7z x phonon*.7z
23# mv -v vlc-*/ vlc/
24# unzip tomahawk-vlc-0.1.zip
25tar xvjf "$VLC_TARBALL"
26
27# echo "Download phonon_vlc_no_video.dll..."
28# wget -c http://people.videolan.org/~jb/phonon/phonon_vlc_no_video.dll
29# cp -v phonon_vlc_no_video.dll prefix/bin/phonon_backend/phonon_vlc.dll
30
31# echo "Strip unneeded plugins from vlc/plugins..."
32# cd prefix/bin/plugins
33# rm -rvf libold* libvcd* libdvd* liblibass* libx264* libschroe* liblibmpeg2* \
34#     libstream_out_* libmjpeg_plugin* libh264_plugin* libzvbi_plugin* lib*sub* \
35#     *qt4* *skins2* libaccess_bd_plugin.dll \
36#     libaudiobargraph_* libball_plugin.dll \
37#     libdirac_plugin.dll \
38#     libgnutls_plugin.dll \
39#     libcaca_plugin.dll \
40#     libfreetype_plugin.dll \
41#     libaccess_output_shout_plugin.dll \
42#     libremoteosd_plugin.dll \
43#     libsdl_image_plugin.dll \
44#     libvout_sdl_plugin.dll \
45#     libpng_plugin.dll \
46#     libgoom_plugin.dll \
47#     libatmo_plugin.dll \
48#     libmux_ts_plugin.dll \
49#     libkate_plugin.dll \
50#     libtaglib_plugin.dll
51
52
53# this is for vlc-2.x
54cd vlc/plugins
55rm -rvf \
56    video_*/ \
57    gui/ \
58    **/libold* \
59    **/libvcd* \
60    **/libdvd* \
61    **/liblibass* \
62    **/libx264* \
63    **/libschroe* \
64    **/liblibmpeg2* \
65    **/libstream_out_* \
66    **/libmjpeg_plugin* \
67    **/libh264_plugin* \
68    **/libzvbi_plugin* \
69    **/lib*sub* \
70    services_discovery/ \
71    visualization/ \
72    control/ \
73    **/libi420* \
74    **/libi422* \
75    mux/ \
76    stream_filter/*dash* \
77    stream_filter/*smooth* \
78    stream_filter/*record* \
79    **/libtheora_plugin* \
80    **/liblibbluray_plugin* \
81    **/libdtv_plugin* \
82    **/*.dll.a \
83    **/*.la \
84    misc/liblogger_plugin*
85
86
87echo "Downloaded and stripped VLC"