Commit d4922b00 authored by Vincent Untz's avatar Vincent Untz

[autotools] Make .desktop file translatable and installable

parent fc1f3126
......@@ -7,6 +7,11 @@ endif
PATCHES = $(wildcard $(top_srcdir)/patches/*.patch)
MODULESETS = $(wildcard $(top_srcdir)/modulesets/*.modules) modulesets/moduleset.dtd
desktopdir = $(datadir)/applications
desktop_in_files = jhbuild.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
INTLTOOL = \
intltool-extract.in \
......@@ -15,7 +20,7 @@ INTLTOOL = \
EXTRA_DIST = gnome-doc-utils.make $(PATCHES) $(MODULESETS) \
install-check.c \
jhbuild.desktop $(INTLTOOL)
$(desktop_in_files) $(INTLTOOL)
DISTCLEANFILES = \
intltool-extract \
......
......@@ -31,8 +31,8 @@ install: install-check
@echo "Creating $(desktopdir)/jhbuild.desktop"
@mkdir -p $(desktopdir)
@cp jhbuild.desktop $(desktopdir)
@echo "Exec=$(bindir)/jhbuild gui" >> $(desktopdir)/jhbuild.desktop
@sed "s,^_,,g;s,^Exec=.*$,Exec=$(bindir)/jhbuild gui,;s,^X-GNOME-Bugzilla-Version=.*$,," \
< jhbuild.desktop.in.in > $(desktopdir)/jhbuild.desktop
@[ -f $(HOME)/.jhbuildrc ]||echo "Don't forget to create ~/.jhbuildrc"
install -m755 install-check $(bindir)/install-check
......
......@@ -46,4 +46,6 @@ AC_CONFIG_FILES([
jhbuild/versioncontrol/Makefile
buildbot/Makefile
])
AC_OUTPUT
AC_OUTPUT([
jhbuild.desktop.in
])
[Desktop Entry]
Type=Application
Name=Build GNOME Modules
_Name=GNOME Build Tool
_Comment=Build GNOME modules
Exec=jhbuild gui
Categories=GNOME;Development;Building;
Icon=applications-development
Terminal=false
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=jhbuild
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=@VERSION@
jhbuild.desktop.in
jhbuild/commands/autobuild.py
jhbuild/commands/base.py
jhbuild/commands/bootstrap.py
......
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