Page 1 of 1

update script

Posted: Fri Apr 30, 2010 5:40 pm
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

Re: update script

Posted: Wed May 05, 2010 2:23 pm
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.

Re: update script

Posted: Wed May 05, 2010 5:31 pm
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