Commit bd446274 authored by Ray Strode's avatar Ray Strode

build-goo: generate shell script wrapper in different way

Using configure to generate the wrapper doesn't work unless
we switch to AS_AC_EXPAND or something since the libexecdir
won't fully expand to an absolute path by default.

This commit drops the idea of using configure to generate
the wrapper and instead falls back to good old sed.

https://bugzilla.gnome.org/show_bug.cgi?id=756633
parent 445b9075
......@@ -380,7 +380,6 @@ data/icons/48x48/Makefile
data/icons/scalable/Makefile
data/icons/symbolic/Makefile
gnome-session/Makefile
gnome-session/gnome-session
tools/Makefile
po/Makefile.in
])
......
EXTRA_DIST =
EXTRA_DIST = gnome-session.in
NULL =
bin_SCRIPTS = gnome-session
libexec_PROGRAMS = gnome-session-binary gnome-session-failed
......@@ -16,6 +16,11 @@ AM_CPPFLAGS = \
AM_CFLAGS = $(WARN_CFLAGS)
gnome-session: gnome-session.in Makefile
$(AM_V_GEN) sed \
-e "s|\@libexecdir\@|$(libexecdir)|" \
$< > $@.tmp && mv $@.tmp $@
gnome_session_binary_SOURCES = \
$(BUILT_SOURCES) \
gsm-app.h \
......@@ -211,6 +216,8 @@ EXTRA_DIST += \
org.gnome.SessionManager.Presence.xml
CLEANFILES = \
gnome-session \
gnome-session.tmp \
$(BUILT_SOURCES)
-include $(top_srcdir)/git.mk
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