[Geany-devel] Build, Compile, Execute [Built Setting] for various filenanetypes extension

Noli Sicad nsicad at xxxxx
Tue Feb 23 01:03:16 UTC 2010


Hi,

I am trying to run glpsol (glpk) in geany. I have problem using
run_cmd. It seem that the build_settings is very limit.

Geany
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler =
run_cmd="./%e"

It seem that the run_cmd is limited to accommodate various file
extension and options for various languages and script. If not, how
you do implement this in geany.

This is TextAdept implementation in running glpsol. TA runs the
command perfectly.

mod = '/usr/local/bin/glpsol --math %(filename)',
 mps = '/usr/local/bin/glpsol --mps %(filename)',
 fms = '/usr/local/bin/glpsol --freemps %(filename)',
 lp =  '/usr/local/bin/glpsol --lp %(filename)',
 glp = '/usr/local/bin/glpsol --dlp %(filename)',

In Geany, how do you do this.

run_cmd = glpsol --math ?????????

Would the run_cmd intelligence enough to know the filenames extension?

eg.

run_cmd = '/usr/local/bin/glpsol --math %(filename)',
run_cmd = '/usr/local/bin/glpsol --mps %(filename)',
run_cmd = '/usr/local/bin/glpsol --freemps %(filename)',
run_cmd =  '/usr/local/bin/glpsol --lp %(filename)',
run_cmd = '/usr/local/bin/glpsol --dlp %(filename)',


For information on the documentation of glpk

Google: glpk
http://www.google.com.au/#hl=en&source=hp&q=glpk&btnG=Google+Search&meta=&aq=f&oq=glpk&fp=c6d7d6ba048d7013

GLPK
http://www.gnu.org/software/glpk/

GUSEK
http://gusek.sourceforge.net/gusek.html

Noli



More information about the Devel mailing list