groffstudio

Diff
Login

Diff

Differences From Artifact [d57fac412e]:

To Artifact [0fcf2493e9]:


137
138
139
140
141
142
143
144

145
146

147
148
149
150
151
152
153
137
138
139
140
141
142
143

144
145

146
147
148
149
150
151
152
153







-
+

-
+







  ResStream: TResourceStream;
  {$IFDEF DARWIN}
  HTTPClient: TFPHttpClient;
  {$ENDIF}
begin
  // What's the current running groff version?
  {$IFDEF WINDOWS}
  if RunCommand('cmd', ['/c', 'troff', '--version'], GroffOutputVersion) then
  if RunCommand('cmd', ['/c', 'troff --version'], GroffOutputVersion) then
  {$ELSE}
  if RunCommand('/bin/sh', ['-c', 'troff', '--version'], GroffOutputVersion) then
  if RunCommand('/bin/sh', ['-c', 'troff --version'], GroffOutputVersion) then
  {$ENDIF}
  begin
    edtGroffInstalledVersion.Text := GroffOutputVersion;
    if pos('GNU', GroffOutputVersion) = 0 then
       ShowMessage('groffstudio thinks that your installed version of troff is not GNU troff.' + LineEnding +
       'If this is correct, you are advised to fix this before continuing.' + LineEnding +
       'If it is an error, please tell me so I can improve this detection.');