Bug #1098 » 0075-Meson-Fix-metainfo-generation.patch
bootstrap/Makefile.am | ||
---|---|---|
$(metainfofile_DATA) : %.metainfo.xml: %.metainfo.xml.in generate_metainfo.sh $(top_srcdir)/fc_version
|
||
@if ! $(AM_V_P) ; then echo " metainfo $@" ; fi
|
||
$(AM_V_at) "$(top_srcdir)/bootstrap/generate_metainfo.sh" "$@" "$(top_builddir)/bootstrap" "@RELEASE_TYPE@" "@RELEASE_DATE@" "@NEWS_URL@"
|
||
$(AM_V_at) "$(top_srcdir)/bootstrap/generate_metainfo.sh" "$@" "$(top_builddir)/bootstrap"
|
||
metainfo_stamp: $(metainfofile_DATA)
|
||
bootstrap/generate_metainfo.sh | ||
---|---|---|
#
|
||
#***********************************************************************/
|
||
if test "$1" = "-h" || test "$1" = "--help" || test "$1" = "" || test "$2" = "" ||
|
||
test "$3" = "" ; then
|
||
echo "Usage: $(basename $0) <target file> <build root directory> <stable/development> [date] [URL]"
|
||
if test "$1" = "-h" || test "$1" = "--help" || test "$1" = "" || test "$2" = "" ; then
|
||
echo "Usage: $(basename $0) <target file> <build root directory>"
|
||
exit
|
||
fi
|
||
... | ... | |
cd "$(dirname $0)"
|
||
FCVER="$(../fc_version)"
|
||
VERSION_SCRIPT_SILENT=yes . ../fc_version
|
||
if test "$3" != "stable" && test "$3" != "development" ; then
|
||
echo "Unknown release type \"$3\"" >&2
|
||
FCVER="${VERSION_STRING}${VERSION_REV}"
|
||
if test "${RELEASE_TYPE}" != "stable" && test "${RELEASE_TYPE}" != "development" ; then
|
||
echo "Unknown release type \"${RELEASE_TYPE}\"" >&2
|
||
exit 1
|
||
fi
|
||
RELTYPE="$3"
|
||
if test "$4" != "" ; then
|
||
if test "$5" != "" ; then
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELTYPE}\" date=\"$4\"><url>$5</url></release>"
|
||
if test "${RELEASE_DATE}" != "" ; then
|
||
if test "${NEWS_URL}" != "" ; then
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELEASE_TYPE}\" date=\"${RELEASE_DATE}\"><url>${NEWS_URL}</url></release>"
|
||
else
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELTYPE}\" date=\"$4\" />"
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELEASE_TYPE}\" date=\"${RELEASE_DATE}\" />"
|
||
fi
|
||
else
|
||
# Tag with no date causes format checker warning, but
|
||
# flatpak builder outright errors if there's no <release> tag
|
||
# at all within <releases> ... </releases> list
|
||
if test "$5" = "" ; then
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELTYPE}\" />"
|
||
if test "${NEWS_URL}" = "" ; then
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELEASE_TYPE}\" />"
|
||
else
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELTYPE}\"><url>$5</url></release>"
|
||
RELEASETAG="<release version=\"${FCVER}\" type=\"${RELEASE_TYPE}\"><url>${NEWS_URL}</url></release>"
|
||
fi
|
||
fi
|
||
configure.ac | ||
---|---|---|
AM_CONDITIONAL([SRV_LIB],
|
||
[test "x$server" = "xyes" || test "x$fcmanual" = "xyes" || test "x$ruledit" = "xyes" || test "x$fcruleup" = "xyes"])
|
||
AC_SUBST([RELEASE_TYPE])
|
||
if test "$RELEASE_TYPE" = "stable" ; then
|
||
AC_SUBST([RELEASE_DATE])
|
||
AC_SUBST([NEWS_URL])
|
||
:
|
||
fi
|
||
AC_SUBST([gui_3d_libs])
|
||
AC_SUBST([gui_gtk3_22_cflags])
|
||
AC_SUBST([gui_gtk3_22_libs])
|
meson.build | ||
---|---|---|
ls_core = custom_target('langstat_core', output: 'langstat_core.txt',
|
||
command: [sh_exe, files('bootstrap/generate_langstat.sh'), 'core',
|
||
meson.project_source_root(), meson.project_build_root()])
|
||
meson.project_source_root(), b_root])
|
||
ls_nations = custom_target('langstat_nations', output: 'langstat_nations.txt',
|
||
command: [sh_exe, files('bootstrap/generate_langstat.sh'), 'nations',
|
||
meson.project_source_root(), meson.project_build_root()])
|
||
meson.project_source_root(), b_root])
|
||
ls_ruledit = custom_target('langstat_ruledit', output: 'langstat_ruledit.txt',
|
||
command: [sh_exe, files('bootstrap/generate_langstat.sh'), 'ruledit',
|
||
meson.project_source_root(), meson.project_build_root()])
|
||
meson.project_source_root(), b_root])
|
||
specenum = custom_target('specenum_gen.h', output: 'specenum_gen.h',
|
||
command: [python_exe, files('utility/generate_specenum.py'),
|
||
... | ... | |
input: 'bootstrap/org.freeciv.server.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@',
|
||
meson.project_build_root(), 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk322.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk4.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk4x.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.qt.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.sdl2.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.sdl3.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk3.mp.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk4.mp.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.qt.mp.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||
... | ... | |
input: 'bootstrap/org.freeciv.ruledit.metainfo.xml.in',
|
||
output: '@BASENAME@',
|
||
command: [sh_exe, files('bootstrap/generate_metainfo.sh'),
|
||
'@OUTPUT@', b_root, 'development'],
|
||
'@OUTPUT@', b_root],
|
||
depend_files: files('fc_version'),
|
||
install: true,
|
||
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|