mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: build fails with meson < 0.53.0
meson.build:12:0: ERROR: Module "fs" does not exist Fixes #909
This commit is contained in:
parent
05b12602d4
commit
85e00b2aab
@ -2,6 +2,7 @@ project(
|
||||
'waybar', 'cpp', 'c',
|
||||
version: '0.9.4',
|
||||
license: 'MIT',
|
||||
meson_version: '>= 0.49.0',
|
||||
default_options : [
|
||||
'cpp_std=c++17',
|
||||
'buildtype=release',
|
||||
@ -9,8 +10,6 @@ project(
|
||||
],
|
||||
)
|
||||
|
||||
fs = import('fs')
|
||||
|
||||
compiler = meson.get_compiler('cpp')
|
||||
|
||||
cpp_args = []
|
||||
@ -318,9 +317,9 @@ if scdoc.found()
|
||||
|
||||
foreach file : man_files
|
||||
path = '@0@'.format(file)
|
||||
basename = fs.name(path)
|
||||
basename = path.split('/')[-1]
|
||||
|
||||
topic = basename.split('.')[-3].split('/')[-1]
|
||||
topic = basename.split('.')[-3]
|
||||
section = basename.split('.')[-2]
|
||||
output = '@0@.@1@'.format(topic, section)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user