[gnome-initial-setup] Add a desktop file and datadir



commit 7362ebf975e628d6722c212a390b1dbcd7f98e81
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jun 11 15:10:36 2012 -0400

    Add a desktop file and datadir

 .gitignore                             |    2 ++
 Makefile.am                            |    2 +-
 configure.ac                           |    4 ++++
 data/Makefile.am                       |   26 ++++++++++++++++++++++++++
 data/gnome-initial-setup.desktop.in.in |   14 ++++++++++++++
 5 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 276c5fd..3a5e806 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,3 +53,5 @@ gnome-initial-setup/timedated.c
 gnome-initial-setup/timedated.h
 gnome-initial-setup/setup_resources.c
 gnome-initial-setup/gnome-initial-setup
+
+gnome-initial-setup.desktop
diff --git a/Makefile.am b/Makefile.am
index 0182db1..762d828 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
-SUBDIRS = gnome-initial-setup
+SUBDIRS = data gnome-initial-setup po
 
 EXTRA_DIST = \
     autogen.sh \
diff --git a/configure.ac b/configure.ac
index 70f3f88..61faa1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,8 @@ AM_SILENT_RULES([yes])
 LT_INIT
 AC_PROG_CC
 
+IT_PROG_INTLTOOL([0.40])
+
 GETTEXT_PACKAGE=gnome-initial-setup
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])
@@ -60,6 +62,8 @@ AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
 AM_CONFIG_HEADER(config.h)
 AC_CONFIG_FILES([
 Makefile
+data/Makefile
 gnome-initial-setup/Makefile
+po/Makefile.in
 ])
 AC_OUTPUT
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..e1ff208
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,26 @@
+NULL =
+
+edit = $(AM_V_GEN) sed \
+	-e 's|@SBINDIR[ ]|$(sbindir)|g' \
+	-e 's|@SYSCONFDIR[ ]|$(sysconfdir)|g' \
+	-e 's|@LIBDIR[ ]|$(libdir)|g' \
+	-e 's|@LIBEXECDIR[ ]|$(libexecdir)|g' \
+	-e 's|@LOCALSTATEDIR[ ]|$(localstatedir)|g'
+
+%.desktop.in: %.desktop.in.in Makefile
+	$(edit) $< >$@
+
+ INTLTOOL_DESKTOP_RULE@
+
+desktopdir = $(pkgdatadir)/applications
+desktop_DATA =						\
+	gnome-initial-setup.desktop			\
+	$(NULL)
+
+EXTRA_DIST =						\
+	gnome-initial-setup.desktop.in.in		\
+	$(NULL)
+
+CLEANFILES =						\
+	gnome-initial-setup.desktop.in			\
+	$(NULL)
diff --git a/data/gnome-initial-setup.desktop.in.in b/data/gnome-initial-setup.desktop.in.in
new file mode 100644
index 0000000..bcad3c9
--- /dev/null
+++ b/data/gnome-initial-setup.desktop.in.in
@@ -0,0 +1,14 @@
+[Desktop Entry]
+_Name=Initial Setup
+Icon=preferences-system
+Exec= LIBEXECDIR@/gnome-initial-setup
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=GNOME;GTK;System;
+OnlyShowIn=GNOME;
+NoDisplay=true
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-initial-setup
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version=unknown



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]