-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (24 loc) · 779 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (24 loc) · 779 Bytes
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
#!/bin/bash
echo ""
echo "Do you want to install just media_scripts.sh or its dependencies too?"
#echo "note, mapping all english audio tracks also maps all english subtitles"
#echo "and subtitle mode is forced to auto"
select opt in "script" "dependencies" ; do
case $opt in
script )
break;;
dependencies )
echo "installing dependencies"
apt install ffmpeg mkvtoolnix liblept5 libtesseract-data tesseract-ocr libtesseract-dev libtesseract3 openjdk-8-jre
dpkg -i BDSup2Sub.deb vobsub2srt-1.0pre7-11-g0ba6e25-Linux.deb
break;;
*)
echo "invalid option"
esac
done
echo "making link to media_scripts.sh ~/bin/"
#mkdir -p ~/bin
#install -m 755 media_scripts.sh ~/bin/media_scripts
#echo $(pwd)
ln -sf $(pwd)/media_scripts.sh /usr/local/bin/media_scripts
echo "DONE!"