diff options
author | Ronan Collobert <ronan@collobert.com> | 2012-02-24 18:33:50 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2012-02-24 18:33:50 +0400 |
commit | 112d867d9bb48726c42577fe8a86ac3c7a83e762 (patch) | |
tree | 6ec637a09a902d7c41b944c00daa1c3328c58fe7 | |
parent | 669518434ee0062cd1d3ae05b2453adc981ff97c (diff) |
a bit of freebsd support
-rw-r--r-- | gnuplot.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnuplot.lua b/gnuplot.lua index 9457ee4..50ea547 100644 --- a/gnuplot.lua +++ b/gnuplot.lua @@ -25,6 +25,8 @@ local function findos() return 'mac' elseif s:match('Linux') then return 'linux' + elseif s:match('FreeBSD') then + return 'freebsd' else --error('I don\'t know your operating system') return '?' @@ -120,6 +122,10 @@ local function getgnuplotdefaultterm(os) return 'wxt' elseif os == 'linux' and gnuplothasterm('x11') then return 'x11' + elseif os == 'freebsd' and gnuplothasterm('wxt') then + return 'wxt' + elseif os == 'freebsd' and gnuplothasterm('x11') then + return 'x11' elseif os == 'mac' and gnuplothasterm('aqua') then return 'aqua' elseif os == 'mac' and gnuplothasterm('x11') then |