-
Notifications
You must be signed in to change notification settings - Fork 2
/
install
71 lines (57 loc) · 2.46 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author David Hönel <[email protected]>
# @copyright Copyright (c) 2015 David Hönel
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Install PostProcessing
# wget filebot and mediainfo files
downloadDeb() {
wget "http://www.filebot.net/download.php?mode=s&type=deb&arch=${1}" -O filebot_${1}.deb
wget `curl https://mediaarea.net/de/MediaInfo/Download/Debian | grep mediainfo_ | grep ${1}.Debian_7.0.deb | cut -d '"' -f2`
wget `curl https://mediaarea.net/de/MediaInfo/Download/Debian | grep libmediainfo0_ | grep ${1}.Debian_7.0.deb | cut -d '"' -f2`
wget `curl https://mediaarea.net/de/MediaInfo/Download/Debian | grep libzen0_ | grep ${1}.Debian_7.0.deb | cut -d '"' -f2`
}
installDeb() {
dpkg -i filebot_*.deb mediainfo_*Debian_7.0.deb libmediainfo0_*Debian_7.0.deb libzen0_*Debian_7.0.deb
}
cd /tmp
archamd64=$(uname -a | grep x86_64)
arch386=$(uname -a | grep 386)
arch486=$(uname -a | grep 486)
arch686=$(uname -a | grep 686)
if [ ! -z "${archamd64}" ]; then
downloadDeb amd64
installDeb
elif [ ! -z "${arch386}" ] || [ ! -z "${arch486}" ] || [ ! -z "${arch686}" ] ; then
downloadDeb i386
installDeb
else
echo "Sorry, I was too lazy to setup the install script for your platform, yet. For now its x86_64 and x86_32 only."
fi
if [ ! -d /var/opt/PostProcessing ]; then
git clone https://github.com/davidh2k/PostProcessing /var/opt/PostProcessing
else
cd /var/opt/PostProcessing
if [ ! -f config.old ]; then
mv config config.old
git pull
else
echo "config.old already exists! Backup it to another location, or deleteit if you don't need it anymore."
fi
fi
cd /var/opt/PostProcessing
cp postprocessing /usr/bin
echo "Caller Scripts are located in /var/opt/PostProcessing/callerscripts. Copy them to your needed destination."