[Pkg-owncloud-commits] [owncloud-client] 44/219: Nautilus Overlays: Rename icons according to branding.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 11 14:43:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 4d33773cef1752f26b941d2ed31240f7089e8fdc
Author: Klaas Freitag <freitag at owncloud.com>
Date: Fri Aug 29 20:01:39 2014 +0200
Nautilus Overlays: Rename icons according to branding.
Added a script that renames the icons and patches the python file for
nautilus.
---
shell_integration/icons/CMakeLists.txt | 5 ++++-
shell_integration/nautilus/CMakeLists.txt | 4 +++-
shell_integration/nautilus/fixbranding.sh.in | 4 ++++
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/shell_integration/icons/CMakeLists.txt b/shell_integration/icons/CMakeLists.txt
index d4a3b25..912e400 100644
--- a/shell_integration/icons/CMakeLists.txt
+++ b/shell_integration/icons/CMakeLists.txt
@@ -13,7 +13,10 @@ if( UNIX AND NOT APPLE )
FOREACH(size 128x128 16x16 256x256 32x32 48x48 64x64 72x72)
file(GLOB files "${size}/*.png")
- install(FILES ${files} DESTINATION ${ICON_DIR}/${size}/apps)
+ FOREACH( file ${files} )
+ STRING(REPLACE "oC" ${APPLICATION_NAME} brandedName ${file})
+ install(FILES ${file} DESTINATION ${ICON_DIR}/${size}/apps RENAME ${brandedName})
+ ENDFOREACH(file)
ENDFOREACH(size)
endif()
diff --git a/shell_integration/nautilus/CMakeLists.txt b/shell_integration/nautilus/CMakeLists.txt
index 7ceba36..93824b1 100644
--- a/shell_integration/nautilus/CMakeLists.txt
+++ b/shell_integration/nautilus/CMakeLists.txt
@@ -1 +1,3 @@
-install(FILES ownCloud.py DESTINATION ${DATADIR}/nautilus-python/extensions)
+configure_file(fixbranding.sh.in ${CMAKE_CURRENT_BINARY_DIR}/fixbranding.sh)
+
+install(FILES ${APPLICATION_EXECUTABLE}.py DESTINATION ${DATADIR}/nautilus-python/extensions)
diff --git a/shell_integration/nautilus/fixbranding.sh.in b/shell_integration/nautilus/fixbranding.sh.in
new file mode 100644
index 0000000..360951e
--- /dev/null
+++ b/shell_integration/nautilus/fixbranding.sh.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+sed 's/oC_/@APPLICATION_EXECUTABLE at _/' ownCloud.py
+mv ownCloud.py @APPLICATION_EXECUTABLE at .py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list