<p></p>
<p><b>@eli-schwartz</b> requested changes on this pull request.</p>
<hr>
<p>In <a href="https://github.com/geany/geany/pull/2761#discussion_r790280295">doc/meson.build</a>:</p>
<pre style='color:#555'>> + custom_target('doxygen.stamp',
+ input: dox,
+ output: ['doxygen.stamp'],
+ command: [doxygen, '@INPUT@', '&&', 'touch', '@OUTPUT@'],
+ depends: libgeany,
+ build_by_default: true)
+ doxy_xml = custom_target('doxygen-gi.stamp',
+ input: doxgi,
+ output: ['doxygen-gi.stamp'],
+ command: [doxygen, '@INPUT@', '&&', 'touch', '@OUTPUT@'],
+ depends: libgeany,
+ build_by_default: true)
+ custom_target('gtkdoc headers',
+ input : [doxy_xml],
+ output: ['geany-gtkdoc.h', 'geany-sciwrappers-gtkdoc.h'],
+ command: [python, '../scripts/gen-api-gtkdoc.py', join_paths(meson.current_build_dir(), 'xml'), '-d', '.', '-o', '@OUTPUT0@', '--sci-output', '@OUTPUT1@'],
</pre>
<p dir="auto">This is utterly wrong, then. :p</p>
<p dir="auto">Please use <code>command: [find_program('scripts/gen-api-gtkdoc.py'), ......]</code> since find_program will make the script path be actually correct, and also for the record it handles scripts with shebangs for you for windows/Linux portability.</p>
<hr>
<p>In <a href="https://github.com/geany/geany/pull/2761#discussion_r790280778">doc/meson.build</a>:</p>
<pre style='color:#555'>> @@ -0,0 +1,128 @@
+configure_file(input: 'geany.1.in',
+ output: 'geany.1',
+ install: true,
+ install_dir: join_paths(join_paths(prefix, get_option('mandir'), 'man1')),
+ configuration: cdata)
+
+if rst2pdf.found()
+ custom_target('pdf-manual',
+ input: ['geany.txt'],
+ output: ['geany-@0@.pdf'.format(cdata.get('VERSION'))],
+ command: [rst2pdf, '@INPUT@', '-o', '@OUTPUT@'],
+ build_by_default: true)
+endif
+
+tarball = run_command('test', '-f', 'geany.html')
</pre>
<p dir="auto">Please specify <code>check: false</code>, because meson recently starts warning that the default is, unexpectedly, false and may change in future versions of meson.</p>
<p dir="auto">Better yet, if your minimum version of meson allows it, use the <code>fs</code> module to check whether files exist without running external processes. :)</p>
<hr>
<p>In <a href="https://github.com/geany/geany/pull/2761#discussion_r790281050">doc/meson.build</a>:</p>
<pre style='color:#555'>> + dep_doxygen = declare_dependency(sources: ['plugins.dox',
+ 'pluginsignals.c',
+ 'pluginsymbols.c',
+ 'stash-example.c',
+ 'stash-gui-example.c'])
+
+ custom_target('doxygen.stamp',
+ input: dox,
+ output: ['doxygen.stamp'],
+ command: [doxygen, '@INPUT@', '&&', 'touch', '@OUTPUT@'],
+ depends: libgeany,
+ build_by_default: true)
+ doxy_xml = custom_target('doxygen-gi.stamp',
+ input: doxgi,
+ output: ['doxygen-gi.stamp'],
+ command: [doxygen, '@INPUT@', '&&', 'touch', '@OUTPUT@'],
</pre>
<p dir="auto">Meson's command kwarg does not accept shell commands, only execve() commands. If you need the former, use <code>['sh', '-c', '...']</code> or a python script.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2761#pullrequestreview-860326285">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6BXV4ACCPNYEFSTI3UXQDA3ANCNFSM4ZDZAFLA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJZXIBD227S2GPOLGPDUXQDA3A5CNFSM4ZDZAFLKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGNDYTDI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/2761/review/860326285</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2761#pullrequestreview-860326285",
"url": "https://github.com/geany/geany/pull/2761#pullrequestreview-860326285",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>