mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-07-28 21:49:24 +00:00
Compare commits
1 Commits
8150d6c48c
...
centralize
| Author | SHA1 | Date | |
|---|---|---|---|
| 344f5af01b |
@@ -1,5 +1,5 @@
|
|||||||
project('zoitechat', 'c',
|
project('zoitechat', 'c',
|
||||||
version: '2.18.3',
|
version: run_command('cat', 'VERSION', check: true).stdout().strip(),
|
||||||
meson_version: '>= 0.55.0',
|
meson_version: '>= 0.55.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c17',
|
'c_std=c17',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Name: zoitechat
|
Name: zoitechat
|
||||||
Version: 2.18.3
|
Version: %(cat VERSION)
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: HexChat-based IRC client
|
Summary: HexChat-based IRC client
|
||||||
License: GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception
|
License: GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception
|
||||||
|
|||||||
@@ -13,8 +13,16 @@ else
|
|||||||
python_dep = dependency(python_opt, version: '>= 2.7')
|
python_dep = dependency(python_opt, version: '>= 2.7')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
python_py_conf = configuration_data()
|
||||||
|
python_py_conf.set('VERSION', meson.project_version())
|
||||||
|
python_py = configure_file(
|
||||||
|
input: 'python.py',
|
||||||
|
output: 'python.py',
|
||||||
|
configuration: python_py_conf
|
||||||
|
)
|
||||||
|
|
||||||
python3_source = custom_target('python-bindings',
|
python3_source = custom_target('python-bindings',
|
||||||
input: ['../../src/common/zoitechat-plugin.h', 'python.py'],
|
input: ['../../src/common/zoitechat-plugin.h', python_py],
|
||||||
output: 'python.c',
|
output: 'python.c',
|
||||||
command: [find_program('generate_plugin.py'), '@INPUT@', '@OUTPUT@']
|
command: [find_program('generate_plugin.py'), '@INPUT@', '@OUTPUT@']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ else:
|
|||||||
if not hasattr(sys, 'argv'):
|
if not hasattr(sys, 'argv'):
|
||||||
sys.argv = ['<zoitechat>']
|
sys.argv = ['<zoitechat>']
|
||||||
|
|
||||||
VERSION = b'2.18.3'
|
VERSION = b'@VERSION@'
|
||||||
PLUGIN_NAME = ffi.new('char[]', b'Python')
|
PLUGIN_NAME = ffi.new('char[]', b'Python')
|
||||||
PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1]))
|
PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1]))
|
||||||
PLUGIN_VERSION = ffi.new('char[]', VERSION)
|
PLUGIN_VERSION = ffi.new('char[]', VERSION)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
param ([string] $templateFilename, [string] $outputFilename)
|
param ([string] $templateFilename, [string] $outputFilename)
|
||||||
|
|
||||||
$versionParts = Select-String -Path "${env:SOLUTIONDIR}meson.build" -Pattern " version: '([^']+)',$" | Select-Object -First 1 | %{ $_.Matches[0].Groups[1].Value.Split('.') }
|
$versionParts = (Get-Content "${env:SOLUTIONDIR}VERSION" -Raw).Trim().Split('.')
|
||||||
|
|
||||||
[string[]] $contents = Get-Content $templateFilename -Encoding UTF8 | %{
|
[string[]] $contents = Get-Content $templateFilename -Encoding UTF8 | %{
|
||||||
while ($_ -match '^(.*?)<#=(.*?)#>(.*?)$') {
|
while ($_ -match '^(.*?)<#=(.*?)#>(.*?)$') {
|
||||||
|
|||||||
Reference in New Issue
Block a user