soundcheck wrote: 
> I do intend to control the entire process myself.
> 
> The only thing I'd like to know is if there's a way to download the most
> current nightly .deb by script.
> 
> 
> Thx.

Here is the manual updater check I use with piCorePlayer.   Note that
you will need to use the path where LMS is installed.  Of course you can
hard code your version too.  And instead of pulling the nocpan version,
you probably want deb.

The first section of the code checks to see if there is a newer version,
then returns the link to the newer version.  If there is a valid link
returned, then you can download the file.  Please note these are script
snipets......you will need to fill in the gaps with your specific
information.


Code:
--------------------
    
  VERSION=$(fgrep "our \$VERSION" /usr/local/slimserver/slimserver.pl | cut 
-d"'" -f2)
  REVISION=$(head -n 1 /usr/local/slimserver/revision.txt)
  echo "${YELLOW}Performing manual check for update link, Current Version is: 
$VERSION r${REVISION}.${NORMAL}"
  tmp=`mktemp`
  wget 
"http://www.mysqueezebox.com/update/?version=${VERSION}&revision=${REVISION}&geturl=1&os=nocpan";
 -O $tmp
  if [ "$?" != "0" ]; then echo "${RED}Unable to Contact Download 
Server!${NORMAL}"; rm $tmp; exit 1; fi
  read LINK < $tmp
  rm -f $tmp
  
  if [ "$LINK" = "0" ]; then
  #   No Update needed
  else
        echo
        echo "${GREEN}Downloading update from ${LINK}"
  fi
  
  rm -f $DL_DIR/*.tgz
  wget -P $DL_DIR $LINK
  if [ "$?" != "0" ]; then
        echo "${RED}Download FAILED...... exiting!${NORMAL}"
        [ -n "$DEBUG" ] || rm -f $DL_DIR/'*.tgz'
        exit 1
  fi
  
--------------------


reference: http://wiki.slimdevices.com/index.php/Nightly_Builds


------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=107247

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to