[SCM] oxygen-icons5 packaging branch, master, updated. 65aa7282c9308bff4eb18902a83fc503e5f60030
Maximiliano Curia
maxy at moszumanska.debian.org
Wed Jan 6 13:31:29 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/frameworks/oxygen-icons5.git;a=commitdiff;h=4cd113a
The following commit has been merged in the master branch:
commit 4cd113a453c8f48e2b55b586ea0ae73f7b1781fc
Author: Eckhart Wörner <ewoerner at kde.org>
Date: Thu Apr 8 08:41:10 2010 +0000
Symlink duplicate icon files to save disk space. (Closes: #531004)
---
debian/changelog | 1 +
debian/control | 2 +-
debian/rules | 1 +
debian/symlink_duplicates.sh | 27 +++++++++++++++++++++++++++
4 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 71615a6..8145a55 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ oxygen-icons (4:4.4.2-0rc1) UNRELEASED; urgency=low
[ Eckhart Wörner ]
* Use cmake support in debhelper 7.3+, get rid of cdbs dependency
+ * Symlink duplicate icon files to save disk space. (Closes: #531004)
-- Modestas Vainius <modax at debian.org> Sat, 27 Mar 2010 03:36:49 +0200
diff --git a/debian/control b/debian/control
index c14a354..f3406f6 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
Uploaders: Sune Vuorela <debian at pusling.com>, Fathi Boudra <fabo at debian.org>,
Armin Berres <armin+debian at space-based.de>, Modestas Vainius <modax at debian.org>
-Build-Depends: debhelper (>= 7.3), cmake
+Build-Depends: debhelper (>= 7.3), cmake, fdupes
Standards-Version: 3.8.4
Homepage: http://www.kde.org/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-kde/trunk/packages/oxygen-icons/#_trunk_packages_oxygen-icons_
diff --git a/debian/rules b/debian/rules
index beb8112..16c10a3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,4 @@
override_dh_install:
dh_install
find $(CURDIR)/debian/oxygen-icon-theme -type d -print0 |xargs -0 rmdir --ignore-fail-on-non-empty
+ bash $(CURDIR)/debian/symlink_duplicates.sh $(CURDIR)/debian/oxygen-icon-theme $(CURDIR)/debian/oxygen-icon-theme/usr/share/icons
diff --git a/debian/symlink_duplicates.sh b/debian/symlink_duplicates.sh
new file mode 100644
index 0000000..06cc272
--- /dev/null
+++ b/debian/symlink_duplicates.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Recursively identifies duplicate files and symlinks them
+# Arguments:
+# $1 Root directory for absolute path calculation
+# $2 Directory for searching duplicate files
+
+echo "Symlinking duplicate files, this may take some time..."
+
+symlink_root=${1/%\//}
+symlink_search_path=$2
+
+target=""
+fdupes -r $symlink_search_path | while read line; do
+ if [ -z "$line" ]; then
+ # New group of duplicate files begins
+ target=""
+ elif [ -z "$target" ]; then
+ # Setting a new target for symlinking
+ target=${line/$symlink_root/}
+ else
+ # Symlink duplicate
+ ln -sf "$target" "$line"
+ fi
+done
+
+echo "...finished"
--
oxygen-icons5 packaging
More information about the pkg-kde-commits
mailing list