[gnome-panel] [panel] Add shebang to gnome-panel-add script



commit afc85de83e0ae70f8b68498ddf60c3708bb6d1c9
Author: Vincent Untz <vuntz gnome org>
Date:   Sat Aug 29 00:06:30 2009 +0200

    [panel] Add shebang to gnome-panel-add script
    
    We need to add AM_PATH_PYTHON to configure.in, and update the build
    system to generate gnome-panel-add from gnome-panel-add.in.

 configure.in                                       |    1 +
 gnome-panel/Makefile.am                            |    9 +++++++--
 .../{gnome-panel-add => gnome-panel-add.in}        |    1 +
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 98b6c33..84c8b29 100644
--- a/configure.in
+++ b/configure.in
@@ -31,6 +31,7 @@ AC_PROG_LIBTOOL
 #AC_PROG_SED available in 2.59b
 AM_PROG_CC_C_O
 
+AM_PATH_PYTHON
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
diff --git a/gnome-panel/Makefile.am b/gnome-panel/Makefile.am
index 94eaf96..dad2d71 100644
--- a/gnome-panel/Makefile.am
+++ b/gnome-panel/Makefile.am
@@ -181,6 +181,10 @@ ui_DATA =					\
 
 libexec_SCRIPTS = gnome-panel-add
 
+gnome-panel-add: gnome-panel-add.in Makefile
+	$(AM_V_GEN)sed -e s!\ PYTHON\@! PYTHON@! < $< > $@
+	$(AM_V_at)chmod a+x $@
+
 EXTRA_DIST =					\
 	$(ui_DATA)				\
 	nothing.cP				\
@@ -192,7 +196,7 @@ EXTRA_DIST =					\
 	gnome-panelrc				\
 	$(entries_DATA)				\
 	$(desktop_DATA)				\
-	$(libexec_SCRIPTS)
+	gnome-panel-add.in
 
 @INTLTOOL_DESKTOP_RULE@
 
@@ -277,7 +281,8 @@ CLEANFILES = \
 	$(BUILT_SOURCES) \
 	$(schemas_in_files:.schemas.in=.schemas) \
 	$(sys_DATA) \
-	$(desktop_DATA)
+	$(desktop_DATA) \
+	gnome-panel-add
 
 dist-hook:
 	cd $(distdir) ; rm -f $(CLEANFILES)
diff --git a/gnome-panel/gnome-panel-add b/gnome-panel/gnome-panel-add.in
old mode 100755
new mode 100644
similarity index 99%
rename from gnome-panel/gnome-panel-add
rename to gnome-panel/gnome-panel-add.in
index 49d0b5f..f549732
--- a/gnome-panel/gnome-panel-add
+++ b/gnome-panel/gnome-panel-add.in
@@ -1,3 +1,4 @@
+#! PYTHON@
 # vim: set ts=4 sw=4 et:
 
 #



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