summaryrefslogtreecommitdiff
path: root/src/xpi.mk
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2009-09-07 22:45:38 +0200
committerBenjamin Drung <bdrung@ubuntu.com>2009-09-07 22:45:38 +0200
commit15e925f58b6262bf83c9fbeff33a1ceb7e93a643 (patch)
tree8370a1c734dc66d067976e20c5d551ccc0eb05e3 /src/xpi.mk
parent085aed18edb036df879c584375214b974cc8bc7c (diff)
- simplify xpi-depends-stamp rule
- update src/xpi.mk
Diffstat (limited to 'src/xpi.mk')
-rw-r--r--src/xpi.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xpi.mk b/src/xpi.mk
index 842d527..269fe71 100644
--- a/src/xpi.mk
+++ b/src/xpi.mk
@@ -208,9 +208,8 @@ install-%-stamp: unzip-%-stamp
touch $@
xpi-depends-stamp: unzip-$(XPI_BASE_FILE)-stamp
- if test -f debian/$(MOZ_EXTENSION_PKG).substvars; then grep -v ^xpi:Depends= debian/$(MOZ_EXTENSION_PKG).substvars > debian/$(MOZ_EXTENSION_PKG).substvars~; fi
- echo "xpi:Depends=$(XPI_DEPENDS)" | sed "s/ / | /g" >> debian/$(MOZ_EXTENSION_PKG).substvars~
- mv debian/$(MOZ_EXTENSION_PKG).substvars~ debian/$(MOZ_EXTENSION_PKG).substvars
+ if test -f debian/$(MOZ_EXTENSION_PKG).substvars; then sed -i '/^xpi:Depends=/d' debian/$(MOZ_EXTENSION_PKG).substvars; fi
+ echo "xpi:Depends=$(XPI_DEPENDS)" | sed "s/ / | /g" >> debian/$(MOZ_EXTENSION_PKG).substvars
touch $@
xpi-install: install-$(XPI_BASE_FILE)-stamp autolinks-stamp xpi-depends-stamp