debian/rules: Also find orig tarball in ../orig.

svn path=/dists/trunk/linux-2.6/; revision=9625
This commit is contained in:
Bastian Blank 2007-10-10 14:02:54 +00:00
parent dc42c97888
commit 116b9b64a2
1 changed files with 6 additions and 2 deletions

8
debian/rules vendored
View File

@ -38,15 +38,19 @@ $(BUILD_DIR) $(STAMPS_DIR):
@[ -d $@ ] || mkdir $@
DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)
TAR_ORIG = ../$(SOURCE)_$(VERSION).orig.tar.gz
TAR_ORIG_NAME = $(SOURCE)_$(VERSION).orig.tar.gz
TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
orig: $(DIR_ORIG)
rsync --delete --exclude debian --exclude .svk --exclude .svn --link-dest=$(DIR_ORIG)/ -a $(DIR_ORIG)/ .
$(DIR_ORIG):
@[ -e $(TAR_ORIG) ] || ( echo "Can't find orig tarball" >&2; exit 1 )
ifeq ($(TAR_ORIG),)
$(error Cannot find orig tarball $(TAR_ORIG_NAME))
else
mkdir -p ../orig
tar -C ../orig -xzf $(TAR_ORIG)
endif
maintainerclean:
rm -f debian/control debian/control.md5sum debian/rules.gen debian/bin/patch.* debian/linux-*