Commit fec6a2fc authored by Christian Hergert's avatar Christian Hergert
Browse files

build: cleanup meson scripts

We don't need meson_dist.sh anymore and drop meson_ from the post install
script name.
parent eb77f0b4
#!/usr/bin/env bash
set -euf -o pipefail
version=$1
name=$2
archive_file=$name-$version.tar.xz
prefix=$name-$version/
pushd $MESON_SOURCE_ROOT
if ! git config tar.tar.xz.command > /dev/null; then
echo "Setting git archive format for tar.xz"
git config tar.tar.xz.command "xz -c"
fi
# TODO: Rely on tag existing?
echo "Creating tarball $archive_file of HEAD"
git archive --format=tar.xz --output=$archive_file --prefix=$prefix HEAD
temp=$(mktemp -d)
srcdir=$temp/source
blddir=$temp/build
instdir=$temp/install
mkdir $srcdir
tar -xf $archive_file -C $srcdir
# Test read-only source dir
chmod 500 $srcdir
pushd $srcdir/$prefix
meson $blddir
pushd $blddir
# FIXME: Tests currently fail on both autotools and meson
#ninja test
env DESTDIR=$instdir ninja install
popd
popd
popd
chmod 700 $srcdir
rm -rf $temp
echo "Everything succeeded!"
\ No newline at end of file
......@@ -244,15 +244,6 @@ executable('gnome-builder', gnome_builder_sources,
dependencies: libide_deps + [libide_dep],
)
meson.add_install_script('build-aux/meson/meson_post_install.py')
# 'dist' will be used by meson, avoid conflicting
run_target('builder-dist',
command: [
find_program('build-aux/meson/meson_dist.sh'),
meson.project_version(),
meson.project_name(),
]
)
meson.add_install_script('build-aux/meson/post_install.py')
message('\n '.join(status))
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