summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/defaultsettings/desktop-base/debian
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/raring/defaultsettings/desktop-base/debian')
-rwxr-xr-xubuntu/raring/defaultsettings/desktop-base/debian/rules17
1 files changed, 15 insertions, 2 deletions
diff --git a/ubuntu/raring/defaultsettings/desktop-base/debian/rules b/ubuntu/raring/defaultsettings/desktop-base/debian/rules
index b9aec371b..67ba1f7f8 100755
--- a/ubuntu/raring/defaultsettings/desktop-base/debian/rules
+++ b/ubuntu/raring/defaultsettings/desktop-base/debian/rules
@@ -4,8 +4,21 @@ include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.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
# needed for usplash
CFLAGS += -fPIC