Re: Service file not well generated



On Sat, 2008-07-26 at 13:33 +0200, igomez igalia com wrote:
> Hi,
> 
> It seems that service file org.gnome.OnlineAccounts.service is not well
> generated.
> 
> ~/od/checkout/online-desktop$ cat org.gnome.OnlineAccounts.service.in
> [D-BUS Service]
> Name=org.gnome.OnlineAccounts
> Exec= bindir@/web-login-driver
> 
> ~/od/checkout/online-desktop$ cat org.gnome.OnlineAccounts.service
> [D-BUS Service]
> Name=org.gnome.WebLoginDriver
> Exec=/home/igomez/od/install/bin/web-login-driver
> 
> I've checked Makefile-weblogindriver but I don't see the mistake...

Oh, I had a (ugly) fix for that sitting around that I did during GUADEC,
but I forgot to check it in. Checked in now

- Owen

Index: Makefile-weblogindriver.am
===================================================================
--- Makefile-weblogindriver.am	(revision 7260)
+++ Makefile-weblogindriver.am	(working copy)
@@ -21,6 +21,9 @@
 EXTRA_DIST += $(service_in_files)
 service_DATA = $(service_in_files:.service.in=.service)
 $(service_DATA): $(service_in_files) Makefile
-	@sed -e "s|\ bindir\@|$(bindir)|" $< > $@
+	@for in in $(service_in_files) ; do \
+		out=`echo $$in | sed -e 's/\.in$$//'`; \
+		sed -e "s|\ bindir\@|$(bindir)|" $$in > $$out ; \
+	done
 
 DISTCLEANFILES += $(service_DATA)




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