[banshee/stable-1.6] Added push-meego script
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] Added push-meego script
- Date: Mon, 26 Apr 2010 20:50:27 +0000 (UTC)
commit 02febfe79b6af48e32694f1d61c232f61e42d2a8
Author: Aaron Bockover <abockover novell com>
Date: Mon Apr 26 14:25:18 2010 -0400
Added push-meego script
Makefile.am | 4 ++--
extras/push-meego | 32 ++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2241d5c..56b856d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -82,8 +82,8 @@ query-trace:
MONO_PID=$$(ps aux | grep mono | grep '\--uninstalled' | grep -v 'cd bin' | awk '{print$$2}'); \
kill -USR2 $$MONO_PID
-push-moblin:
- @extras/push-moblin
+push-meego:
+ @extras/push-meego
gdb:
@pushd bin; \
diff --git a/extras/push-meego b/extras/push-meego
new file mode 100755
index 0000000..1068cc8
--- /dev/null
+++ b/extras/push-meego
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+
+import os
+import sys
+import subprocess
+
+prefix = '/usr/lib/banshee-1'
+exclude_files = []
+sync_files = {}
+
+for path in subprocess.Popen (['meego-ssh', 'find', prefix],
+ stdout = subprocess.PIPE).communicate ()[0].split ('\n'):
+
+ basename = os.path.basename (path)
+ bin_path = os.path.join ('bin', basename)
+
+ if not os.path.isfile (bin_path) or basename in exclude_files:
+ continue
+
+ relpath = os.path.relpath (path, prefix)
+ dirname = os.path.dirname (relpath)
+ if dirname not in sync_files:
+ sync_files[dirname] = []
+ sync_files[dirname].append (bin_path)
+
+for dirname, files in sync_files.iteritems ():
+ scp = ['meego-scp', '-u', 'root']
+ scp.extend (files)
+ scp.append (os.path.abspath (os.path.join (prefix, dirname)))
+ os.waitpid (subprocess.Popen (scp).pid, 0)
+
+subprocess.call (['meego-ssh', 'killall', '-9', 'mutter', 'banshee-1'])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]