issue56: check-gre function in run-conkeror

Priority: bug Status: resolved
Messages
msg71 (view) Author: deusmax Date: 2008-09-28.22:52:33
the function check-gre in contrib/run-conkeror does a grep on the gre.d/1.9*.conf files,
grabs the first result and hopes it somehow works out.

It doesn't on my ubuntu system, where:

%ls /etc/gre.d    
/etc/gre.d/1.9.0.1.system.conf  
/etc/gre.d/1.9.0.3.system.conf   
/etc/gre.d/1.9a8.system.conf     
/etc/gre.d/1.9b3pre.system.conf
/etc/gre.d/1.9b4.system.conf
/etc/gre.d/1.9b5.system.conf
/etc/gre.d/1.9.system.conf

My current xulrunner system is 1.9.0.3, which doesn't sort on the top.
function check-gre can me modified to select the most recent .conf file, using
a simple rewrite as.

* Current check-gre
function check-gre () {
    grep -h GRE_PATH  $(grep -l '\[1\.9' "${1%/}"/*.conf) | cut -d= -f2 | head -n 1
}
* New (proposed) check-gre:
function check-gre () {
    grep -h GRE_PATH  $(ls -t $1/1.9*.conf | head -n 1) | cut -d= -f2 | head -n 1
}

Hope this helps.
Now, I'm able to upgrade my xulrunner w/o conkeror failing to start.
msg75 (view) Author: nicktastic Date: 2008-10-01.17:41:39
Which Ubuntu release are you using?
msg76 (view) Author: deusmax Date: 2008-10-01.20:27:55
Using ubuntu Hardy 8.04

On Wed, Oct 1, 2008 at 8:41 PM, Conkeror Issue Tracker <tracker@conkeror.org
> wrote:

>
> Nicholas A. Zigarovich <nicktastic@gmail.com> added the comment:
>
> Which Ubuntu release are you using?
>
> _____________________________________________
> Conkeror Issue Tracker <tracker@conkeror.org>
> <http://bugs.conkeror.org/issue56>
> _____________________________________________
>
msg90 (view) Author: nicktastic Date: 2008-10-08.19:53:52
As soon as I can verify that the format of the filenames in Ubuntu's gre.d is standard for other Linux
distributions and Unixes, and will always begin with the version number, I'll push this fix.
msg534 (view) Author: retroj Date: 2009-12-07.19:49:49
new version of run-conkeror should do a better job of finding the highest available version of
xulrunner, to launch conkeror.  let us know if you have further troubles.
History
Date User Action Args
2009-12-07 19:49:49retrojsetstatus: chatting -> resolved
messages: + msg534
2008-10-08 19:53:52nicktasticsetmessages: + msg90
2008-10-08 15:22:40nicktasticsetfiles: - unnamed
2008-10-01 20:27:55deusmaxsetfiles: + unnamed
messages: + msg76
2008-10-01 17:41:39nicktasticsetstatus: unread -> chatting
messages: + msg75
2008-09-28 22:52:33deusmaxcreate