I've got a cron job running on my x86_64 build machine that checks for
LMS updates at the nightly downloads page then rebuilds the nocpan
package and updates the repo accordingly. Picked up the change to build
1590299558 and the updated package was available in the repo as of this
morning.
Here's the script I'm using, improvements welcome!
Code:
--------------------
#!/bin/sh
cd "/home/sodface/aports/main/lms-nocpan"
newfrag=$(wget -q http://downloads.slimdevices.com/nightly/?ver=8.0 -O - |
grep noCPAN.tgz | cut -d'/' -f4,5 | cut -d'"' -f1)
commit=$(printf "${newfrag}" | cut -d'/' -f1)
build=$(printf "${newfrag}" | cut -d'-' -f3)
if ! grep -q ${build} APKBUILD
then
sed -i "s/_build=\".*\"/_build=\"${build}\"/" APKBUILD
sed -i "s/_commit=\".*\"/_commit=\"${commit}\"/" APKBUILD
abuild -q checksum
abuild -qr
abuild -q cleanoldpkg
else
echo "No update on $(date)"
fi
--------------------
------------------------------------------------------------------------
sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=112276
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix