Commit 1ed2557d authored by Bastien Nocera's avatar Bastien Nocera

build: Remove autotools support from freedesktop_generate.sh

parent a2086e27
#!/bin/bash -e
if [ "$1" == "--meson" ] ; then
shift
MESON=enabled
fi
src_root="$1"
build_root="$2"
if test "x$MESON" = "x" ; then
make -C "${build_root}/po" update-gmo
OUT="${build_root}/freedesktop.org.xml"
GMODIR="${src_root}/po/"
else
ninja -C "${build_root}" shared-mime-info-gmo
OUT="${build_root}/data/freedesktop.org.xml"
GMODIR="${build_root}/po/"
fi
ninja -C "${build_root}" shared-mime-info-gmo
itstool \
--its "${src_root}/data/its/shared-mime-info.its" \
--join "${src_root}/data/freedesktop.org.xml.in" \
-o "${OUT}" \
"${GMODIR}"*".gmo"
-o "${build_root}/data/freedesktop.org.xml" \
"${build_root}/po/"*".gmo"
......@@ -10,7 +10,6 @@ freedesktop_org_xml = custom_target('freedesktop.org.xml',
output: 'freedesktop.org.xml',
command: [
find_program('freedesktop_generate.sh'),
'--meson',
meson.source_root(),
meson.build_root()
],
......
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