[gnote] * fix the creation of the gnote-applet script



commit 9e095cea26e226d4ab26d8083e8e1a577c8978a7
Author: Hubert Figuiere <hub figuiere net>
Date:   Wed Apr 29 14:31:37 2009 -0400

      * fix the creation of the gnote-applet script
---
 NEWS                |    1 +
 configure.ac        |    1 -
 src/Makefile.am     |    5 ++++-
 src/gnote-applet.in |    2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index 808c3ea..477cb5f 100644
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ Translations:
 
   * Short descriptions in shema must not end with a '.' (Closes #579337)
   * Added translations:
+    - British English (en_GB)
     - Czech (cs)
     - Portugese (pt)
     - Spanish (es)
diff --git a/configure.ac b/configure.ac
index 548c8a0..99d2a5e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,7 +208,6 @@ src/addins/bugzilla/Makefile
 src/addins/fixedwidth/Makefile
 src/addins/inserttimestamp/Makefile
 src/addins/printnotes/Makefile
-src/gnote-applet
 po/Makefile.in
 po/Makefile
 help/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index f5ea4ae..8df9a96 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@
 
 SUBDIRS = addins
 
-EXTRA_DIST = gnote-applet
+EXTRA_DIST = gnote-applet.in
 
 INCLUDES = -I$(top_srcdir)
 AM_CPPFLAGS= LIBGTKMM_CFLAGS@ @LIBGLIBMM_CFLAGS@ \
@@ -48,6 +48,9 @@ AM_CPPFLAGS+= LIBPANELAPPLETMM_CFLAGS@
 GNOTE_LIBS+= LIBPANELAPPLETMM_LIBS@
 
 bin_SCRIPTS=gnote-applet
+gnote-applet: gnote-applet.in Makefile
+	sed -e "s|\ bindir\@|$(bindir)|g"	\
+	    < $< > $@
 endif
 
 libgnote_a_SOURCES = \
diff --git a/src/gnote-applet.in b/src/gnote-applet.in
index 6514524..9940045 100755
--- a/src/gnote-applet.in
+++ b/src/gnote-applet.in
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec @prefix@/@bindir@/gnote --panel-applet $* 
+exec @bindir@/gnote --panel-applet $* 



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