[gnome-control-center] shell: Rename bash completion file so that it's recognized



commit da2a8bd62efad8e9db757dd48d5f2ed87e5848d2
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Thu Jan 17 01:20:28 2013 -0500

    shell: Rename bash completion file so that it's recognized
    
    Bash completion needs the file to be named gnome-control-center
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691924

 shell/Makefile.am                                  |    8 ++++----
 .../gnome-control-center.in}                       |    0
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 822b41f..024d671 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -106,10 +106,10 @@ sys_DATA = $(sys_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
 completiondir = $(datadir)/bash-completion/completions
-completion_in_files = gnome_control_center_completion.bash.in
-completion_DATA = $(completion_in_files:.bash.in=.bash)
-gnome_control_center_completion.bash: gnome_control_center_completion.bash.in list-panel.sh
-	$(AM_V_GEN) cat $< | sed "s,@PANELS@,`$(srcdir)/list-panel.sh $(top_srcdir)`," > $@
+completion_in_files = completions/gnome-control-center.in
+completion_DATA = $(completion_in_files:.in=)
+completions/gnome-control-center: completions/gnome-control-center.in list-panel.sh
+	$(AM_V_GEN) mkdir -p `dirname $ ` && cat $< | sed "s,@PANELS@,`$(srcdir)/list-panel.sh $(top_srcdir)`," > $@
 
 EXTRA_DIST =					\
 	$(resource_files)			\
diff --git a/shell/gnome_control_center_completion.bash.in b/shell/completions/gnome-control-center.in
similarity index 100%
rename from shell/gnome_control_center_completion.bash.in
rename to shell/completions/gnome-control-center.in



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