Commit 0494021f authored by Paolo Borelli's avatar Paolo Borelli

build: update to meson 0.41 which has a dist target

parent caa107cd
......@@ -36,9 +36,9 @@ help_linguas = [
'sv'
]
gnome.yelp(meson.project_name(),
gnome.yelp(
meson.project_name(),
sources: help_files,
media: help_media,
languages: help_linguas,
symlink_media: true,
)
project('gnome-clocks', ['vala', 'c'],
project(
'gnome-clocks',
['vala', 'c'],
version: '3.25.1',
license: 'GPL2+',
meson_version: '>= 0.37',
meson_version: '>= 0.41.0',
)
gnome = import('gnome')
......@@ -46,9 +48,7 @@ endif
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')
meson.add_install_script(join_paths('mesonscripts', 'post_install.py'))
run_target('release', command: [join_paths('mesonscripts', 'release.sh'), meson.project_name(), meson.project_version()])
meson.add_install_script(join_paths('build-aux', 'post-install.py'))
subdir('data')
subdir('help')
......
#!/bin/sh
NAME="$1"
VERSION="$2"
test -n "${MESON_SOURCE_ROOT}" || exit 1
test -n "${NAME}" || exit 1
test -n "${VERSION}" || exit 1
cd "${MESON_SOURCE_ROOT}"
echo "Removing old archive…"
rm -f "${NAME}-${VERSION}.tar"
rm -f "${NAME}-${VERSION}.tar.xz"
echo "Creating git archive…"
git archive --prefix="${NAME}-${VERSION}/" --format=tar HEAD -o ${NAME}-${VERSION}.tar
echo "Compressing archive…"
xz -f "${NAME}-${VERSION}.tar"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment