The following commit has been merged in the experimental branch:
commit 46647bebc1cb0e798774ab09edcaf0b7aa257f1f
Author: Gerfried Fuchs <[email protected]>
Date: Tue Mar 16 23:54:07 2010 +0100
move binaries and manpages to their versioned name
diff --git a/debian/rules b/debian/rules
index 96880f2..c840fdf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -173,21 +173,37 @@ binary-indep: build-indep install-indep
# Build architecture dependant packages using the common target.
binary-arch: build-arch install-arch
+ # manpage symlinks for old binaries
for i in
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/*/man6/wesnoth.6; do \
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
- `dirname $$i`/wesnoth-nolog-$(BRANCH_VERSION).6.gz; \
+ `dirname $$i`/wesnoth-$(BRANCH_VERSION)-nolog.6.gz; \
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
- `dirname $$i`/wesnoth-smallgui-$(BRANCH_VERSION).6.gz; \
+ `dirname $$i`/wesnoth-$(BRANCH_VERSION)-smallgui.6.gz; \
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
- `dirname $$i`/wesnoth_editor-$(BRANCH_VERSION).6.gz; \
+ `dirname $$i`/wesnoth-$(BRANCH_VERSION)_editor.6.gz; \
done
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
-
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth-nolog-$(BRANCH_VERSION).6.gz
+
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth-$(BRANCH_VERSION)-nolog.6.gz
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
-
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth-smallgui-$(BRANCH_VERSION).6.gz
+
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth-$(BRANCH_VERSION)-smallgui.6.gz
ln -s wesnoth-$(BRANCH_VERSION).6.gz \
-
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth_editor-$(BRANCH_VERSION).6.gz
+
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/man6/wesnoth-$(BRANCH_VERSION)_editor.6.gz
+ # move the manpages to their proper name
+ for i in
debian/wesnoth-$(BRANCH_VERSION)-core/usr/share/man/*/man6/wesnoth.6; do \
+ mv $$i $$(echo $$i | sed -e
's/wesnoth/wesnoth-$(BRANCH_VERSION)/'); \
+ done
+ for i in
debian/wesnoth-$(BRANCH_VERSION)-server/usr/share/man/*/man6/wesnothd.6; do \
+ mv $$i $$(echo $$i | sed -e
's/wesnothd/wesnothd-$(BRANCH_VERSION)/'); \
+ done
+
+ # move binaries to their proper name
+ mv debian/wesnoth-$(BRANCH_VERSION)-core/usr/games/wesnoth \
+
debian/wesnoth-$(BRANCH_VERSION)-core/usr/games/wesnoth-$(BRANCH_VERSION)
+ mv debian/wesnoth-$(BRANCH_VERSION)-server/usr/games/wesnothd \
+
debian/wesnoth-$(BRANCH_VERSION)-core/usr/games/wesnothd-$(BRANCH_VERSION)
+
+ # /usr/share/doc symlinks
for i in wesnoth-$(BRANCH_VERSION)-core wesnoth-$(BRANCH_VERSION)-dbg;
do \
install -p -d -m755 debian/$$i/usr/share/doc; \
ln -s wesnoth-$(BRANCH_VERSION)-data
debian/$$i/usr/share/doc/$$i; \
--
Debian packaging of wesnoth
_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits