summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/metapackages/kubuntu-meta
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-01-15 18:52:57 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-15 18:52:57 +0100
commit68a2f23896b2dfd53c80fff69f3663b76b1b73e0 (patch)
tree3292ca03fa3e6a70f1d66081c93181b17c048608 /ubuntu/maverick/metapackages/kubuntu-meta
parent5181f5636665f04b08fe3f53015e1aeb82c691dd (diff)
downloadtde-packaging-68a2f23896b2dfd53c80fff69f3663b76b1b73e0.tar.gz
tde-packaging-68a2f23896b2dfd53c80fff69f3663b76b1b73e0.zip
Fix moving distribution specific data in metapackages on Debian and Ubuntu
Diffstat (limited to 'ubuntu/maverick/metapackages/kubuntu-meta')
-rw-r--r--ubuntu/maverick/metapackages/kubuntu-meta/debian/compat2
-rwxr-xr-xubuntu/maverick/metapackages/kubuntu-meta/debian/rules17
2 files changed, 12 insertions, 7 deletions
diff --git a/ubuntu/maverick/metapackages/kubuntu-meta/debian/compat b/ubuntu/maverick/metapackages/kubuntu-meta/debian/compat
index b8626c4cf..7ed6ff82d 100644
--- a/ubuntu/maverick/metapackages/kubuntu-meta/debian/compat
+++ b/ubuntu/maverick/metapackages/kubuntu-meta/debian/compat
@@ -1 +1 @@
-4
+5
diff --git a/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules b/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules
index 172f9ec16..bd33ed27d 100755
--- a/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules
+++ b/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules
@@ -5,20 +5,25 @@
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
-pre-build::
- mv debian/distrospecific/* . || true
+debian/stamp-distrospecific:
+ dh_testdir
+ [ -e debian/stamp-distrospecific ] || \
+ ls -a1 debian/distrospecific | grep -v "^\.*$$" | \
+ tee debian/stamp-distrospecific | \
+ tr "\n" "\0" | (cd debian/distrospecific && xargs -r0 mv -t ../..)
clean:
- mv debian/distrospecific/* . || true
-
dh_testdir
+ [ ! -e debian/stamp-distrospecific ] || \
+ cat debian/stamp-distrospecific | \
+ tr "\n" "\0" | xargs -r0 mv -t debian/distrospecific
+ rm -f debian/stamp-distrospecific
dh_clean
-
rm -rf build-stamp *.old debootstrap-dir
DEB_BUILD_ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-build: build-stamp
+build: debian/stamp-distrospecific build-stamp
build-stamp: desktop-$(DEB_BUILD_ARCH)
dh_clean