Kodi Community Forum

Full Version: [atv2] automate nightly build install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

here an attempt to facilitate latest night build install....

Code:
AppleTV:~ root# cat upgrade.sh

mirror_url=http://mirrors.xbmc.org/nightlies/darwin/atv2

null=$(/usr/bin/wget $mirror_url 2>&1)
$(grep master index.html | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' > index.txt)

namefile=$(head -1 index.txt | cut -f2 -d\ )

while true; do
    read -p "Do you want to upgrade to '$namefile' ?(y/n)" yn
    case $yn in
        [Yy]* ) wget $mirror_url/$namefile ; dpkg -i $namefile ; rm $namefile ; break;;
        [Nn]* ) break ;;
        * ) echo "Please answer yes or no.";;
    esac
done

$(rm index.txt ; rm index.html)

AppleTV:~ root#

It download the index page from mirror web,
then strip the html code and take the first line.
If the proposed selection is accepted the it start the download and finally install the build.

A.

Refence:
http://wiki.xbmc.org/index.php?title=How...Apple_TV_2
Here's what I'm using:
http://forum.xbmc.org/showthread.php?tid=108142

Best regards,
Durniplot
durniplot Wrote:Here's what I'm using:
http://forum.xbmc.org/showthread.php?tid=108142

Best regards,
Durniplot

Me too
Hello,

There is a new "nightly build" out! (2 october 2011).

But this "trick" continues always to install the buid "xbmc-20110930-2138fb0-master-atv2.deb" (second-last line instead last line). Why? Sad

P.S. Sorry for my english.
jd2157 Wrote:A wise man once said:

http://forum.xbmc.org/showpost.php?p=869...stcount=14

My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "


Why? :confused2: Help!
Uccio Wrote:My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "


Why? :confused2: Help!

no comment

Code:
wget http://mirrors.xbmc.org/nightlies/darwin/atv2/xbmc-20111003-fc543cb-master-atv2.deb
Uccio Wrote:My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "

Take a close look at the instructions and screen shot of the nightly install here:

http://wiki.xbmc.org/index.php?title=Ins...htly_build

It should be fairly easy to see what you're doing wrong, i.e. your wget command isn't right.