[megaglest-data] 23/64: Convert duplicate files into symlinks and fix install location

Markus Koschany apo-guest at moszumanska.debian.org
Sat Jan 31 20:48:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository megaglest-data.

commit cf706ea6612e3a127ccabbfa86486cfdba39acaa
Author: Paul Wise <pabs at debian.org>
Date:   Fri Dec 16 04:43:18 2011 +0000

    Convert duplicate files into symlinks and fix install location
---
 debian/control             | 2 ++
 debian/megaglest-data.dirs | 1 -
 debian/rules               | 5 +++++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index a4c1df7..0dd19e5 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,8 @@ Uploaders: Giuseppe Borzi <gborzi at ieee.org>,
  Siegfried-Angel Gevatter Pujals <rainct at ubuntu.com>, 
  Mark Vejvoda <mark_vejvoda at hotmail.com>
 Build-Depends: debhelper (>= 7.0.50~),
+ rdfind,
+ symlinks,
  cmake
 Standards-Version: 3.9.2
 Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/megaglest-data/
diff --git a/debian/megaglest-data.dirs b/debian/megaglest-data.dirs
deleted file mode 100644
index 12436e5..0000000
--- a/debian/megaglest-data.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/games/megaglest
diff --git a/debian/rules b/debian/rules
index 9dafa27..fec40fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,4 +12,9 @@ override_dh_auto_install:
 	rm -r debian/megaglest-data/usr/share/megaglest/data/core/misc_textures/flags
 	echo "CountryTexturePath=/usr/share/flags/countries/16x11/" >> debian/megaglest-data/usr/share/megaglest/glest.ini
 	find debian/megaglest-data/usr -type d -empty -delete
+	mkdir debian/megaglest-data/usr/share/games
 	mv debian/megaglest-data/usr/share/megaglest debian/megaglest-data/usr/share/games
+	# Replace duplicate files with symlinks
+	rdfind -outputname /dev/null -makesymlinks true debian/megaglest-data/
+	# Fix those symlinks to make them relative
+	symlinks -r -s -c debian/megaglest-data/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/megaglest-data.git



More information about the Pkg-games-commits mailing list