summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorBen Collins <bcollins@debian.org>1999-10-21 15:19:23 +0000
committerBen Collins <bcollins@debian.org>1999-10-21 15:19:23 +0000
commit6ffb7b501e4eaf505c9502b54de8dc1aa5a62b0a (patch)
tree74a0b827bfc1ee3b56fc52e846a15dc0805842e7 /debian/rules
parent167fbbf3ec4a4e2758693ea0562d6415dabe01f3 (diff)
downloaddpkg-6ffb7b501e4eaf505c9502b54de8dc1aa5a62b0a.tar.gz
minor edits
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 905099177..7acfd97c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -133,11 +133,13 @@ binary-indep: binary-trees
fi; \
dpkg-distaddfile -f$(DIR)/debian/files $$f.html.tar.gz byhand -; \
done
- set -e; \
+ set -e;\
version=`sed -n 's/^Version: //p' $(DIR)/debian/tmp-dev/DEBIAN/control`; \
file=dpkg-$${version}.tar.gz; \
- cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \
- dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -;
+ if [ -f $(DIR)/../dpkg_$${version}.tar.gz ]; then \
+ cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \
+ dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -; \
+ fi
binary-arch: binary-trees
$(checkdir)