diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-01-15 18:52:57 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-15 18:52:57 +0100 |
commit | 68a2f23896b2dfd53c80fff69f3663b76b1b73e0 (patch) | |
tree | 3292ca03fa3e6a70f1d66081c93181b17c048608 /ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules | |
parent | 5181f5636665f04b08fe3f53015e1aeb82c691dd (diff) | |
download | tde-packaging-68a2f23896b2dfd53c80fff69f3663b76b1b73e0.tar.gz tde-packaging-68a2f23896b2dfd53c80fff69f3663b76b1b73e0.zip |
Fix moving distribution specific data in metapackages on Debian and Ubuntu
Diffstat (limited to 'ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules')
-rwxr-xr-x | ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules b/ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules index 21fd96aa1..b6386b0d8 100755 --- a/ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules +++ b/ubuntu/maverick/defaultsettings/redmond-default-settings-ii/debian/rules @@ -2,8 +2,21 @@ include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/rules/debhelper.mk -pre-build:: - mv debian/distrospecific/* . || true +pre-build:: debian/stamp-distrospecific + +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:: + dh_testdir + [ ! -e debian/stamp-distrospecific ] || \ + cat debian/stamp-distrospecific | \ + tr "\n" "\0" | xargs -r0 mv -t debian/distrospecific + rm -f debian/stamp-distrospecific CFLAGS=-g -Wall -fPIC |