Conversation
Notices
-
I wrote a script to update my HeyBuddy trunk pkgbuild, rebuild it, and upload it to the AUR. I just have to enter the rev no. -Yeah I'm lazy
Friday, 06-Aug-10 11:34:38 UTC from heybuddy-
@jamba You still have to enter the rev no.? ;p #even-lazier
-
@jamba Trick to it is, get the repo to tell you the rev no., with export HBREV=$(bzr log -r -1 lp:heybuddy | grep revno | sed "s/revno: //")
-
@jamba That'll give you the rev no. (in $HBREV, of course) without downloading anything other than the bzr log, so no bandwidth wasted. :)
-
@jamba Haha, yep. I'm pretty sure I've put more time into avoiding doing things than I'd actually have spent just doing them :D
-
@psquid That is exactly what I was thinking last night :) like the saying goes "laziness spawns innovation" ...or did I make that up?
-
@psquid NOW, if I can just configure this to run every time I get an email saying jezra did a commit... or maybe a cronjob checking revs hmm
-
@jamba "Genius is 1% inspiration, 99% procrastination." ;p
-
@jamba If you can get the emails into a form that can be piped into a script (maybe something with mutt?), I can't imagine it'd be too hard.
-
@psquid I think it'd be better/easier to run a cron in the am (or more often?) and compare revs, update if new. That'd be pretty simple
-
@jamba Mm, seems the best (and easiest) way. Starting work on such a script now. :)
-
@psquid I added your revCheck into my script, and then added compare, if no change then exits. So I should be able to add this to my crontab
-
@jamba Yep, same here. Set to run at X:42, where X is every hour, and only make new pkgs if there's an update :)
-
@psquid I first tried this in Python, but i still know less python than bash (and I dont know much bash) lol
-
@psquid awesome. hey you could use curl to update your status when that runs and updates your packages haha! #lazyPackagers :-p
-
@jamba How do you think I've been sending out the "new package" dents so far? curl == POWER ;p
-
@psquid you're the man!
-
@psquid bzr doesn't really seem to like this: http://sixgun.org/pastebin/19 Changed to bzr log -l 1 lp:heybuddy | ...
-
@jamba That'd be because it's meant to be "-r -1" (minus one, indicating most recent), not "-r -l". But your cmd works too, so no problem :)
-
@jamba The only situation in which your command would have a problem is if bzr was configured to display oldest->newest, rather than (...)
-
@jamba (...) (the default) newest->oldest, since mine says "list the latest rev", whereas yours says "just list one rev".
-
@psquid that makes a lot more sense! damn fonts messing me up
-
@jamba It's annoying, isn't it? Got burned by it enough times now that I always try to make sure I use fonts that differentiate 1 and l.
-
@psquid very annoying. but after some fixage holy crap this thing actually works now!
-