2012-09-10, 19:31
I tried to build the monthly for ATV2 and got it to work, just took your script and changed two lines, but here it is if someone needs it.
and then just run ./xbmcupmon.sh and u should be good.
Thanks for this wonderful script, durniplot.
Code:
rm xbmcupmon.sh
echo '#!/bin/sh' >> ./xbmcupmon.sh
echo "xbmcdir=http://mirrors.xbmc.org/snapshots/darwin/atv2//" >> ./xbmcupmon.sh
echo "wget -q \$xbmcdir" >> ./xbmcupmon.sh
echo "xbmcdeb=\$(cat index.html | gawk 'match(\$0, \"<a href=\\\"(org.xbmc.xbmc-atv2_.*.0-0.*_iphoneos-arm.deb)\\\">\", a) {print a[1]}' | gawk 'NR==1{print $1}')" >> ./xbmcupmon.sh
echo "rm index.html" >> ./xbmcupmon.sh
echo "wget \$xbmcdir/\$xbmcdeb" >> ./xbmcupmon.sh
echo "dpkg -i \$xbmcdeb" >> ./xbmcupmon.sh
echo "rm \$xbmcdeb" >> ./xbmcupmon.sh
chmod 755 ./xbmcupmon.sh
and then just run ./xbmcupmon.sh and u should be good.
Thanks for this wonderful script, durniplot.