update script

The place to discuss linux version of MakeMKV
Post Reply
skittle
Posts: 349
Joined: Thu Jan 14, 2010 4:23 am

update script

Post by skittle »

simple update script for makemkv. change directories and vars to your needs ;)

Code: Select all

#makemkvupdate.sh
read -p 'makemkv version : ' version #ie 1.x.x
echo updating to : makemkv_v$version

wget http://www.makemkv.com/download/makemkv_v$version\_beta_bin.tar.gz -P /home/<user>/Download
wget http://www.makemkv.com/download/makemkv_v$version\_beta_oss.tar.gz -P /home/<user>/Download
tar -xvzf /home/<user>/Download/makemkv_v$version\_beta_bin.tar.gz -C /home/<user>/source/makemkv
tar -xvzf /home/<user>/Download/makemkv_v$version\_beta_oss.tar.gz -C /home/<user>/source/makemkv

cd /home/<user>/source/makemkv/makemkv_v$version\_beta_bin/
make -f makefile.linux
sudo make -f makefile.linux install

cd /home/<user>/source/makemkv/makemkv_v$version\_beta_oss/
make -f makefile.linux
sudo make -f makefile.linux install
run the shell script with

Code: Select all

sh makemkvupdate.sh
Last edited by skittle on Wed May 05, 2010 5:35 pm, edited 1 time in total.
adave
Posts: 14
Joined: Sat Feb 13, 2010 7:29 pm

Re: update script

Post by adave »

Thanks for the script. I'm still a linux newbie and trying to get this to work. I've created the file (called it makemkvupdate) and changed the makemkv paths accordingly. Used the chmod +x function on the file to make it executable. However, when I go to launch the file from terminal (sudo makemkvupdate), I get a "command not found" error.

Can you let me know what I'm doing wrong? Thanks.
skittle
Posts: 349
Joined: Thu Jan 14, 2010 4:23 am

Re: update script

Post by skittle »

Hi, its just a simple shell script.
just run the script:

Code: Select all

sh makemkvupdate.sh
or

Code: Select all

./makemkvupdate.sh
no need for sudo or anything
Post Reply