Test for existence of debian/patches directory before creating a symlink to it.

This prevents packages that apply no patches from ending up with a broken
symlink in them.

Remove SVN keyword.

Update copyright notice.
This commit is contained in:
Branden Robinson 2007-04-12 23:18:32 -04:00
parent 72811b4ced
commit 271778bd63
1 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,10 @@
#!/usr/bin/make -f
# $Id$
# Debian rules file for xorg-x11 source package
# Debian X Strike Force Build System (XSFBS): Make portion
# Copyright 1996 Stephen Early
# Copyright 1997 Mark Eichin
# Copyright 1998-2005 Branden Robinson
# Copyright 1998-2005, 2007 Branden Robinson
# Copyright 2005 David Nusinow
#
# Licensed under the GNU General Public License, version 2. See the file
@ -127,7 +126,7 @@ $(STAMP_DIR)/prepare: $(STAMP_DIR)/stampdir
if [ ! -e $(STAMP_DIR)/log ]; then \
mkdir $(STAMP_DIR)/log; \
fi; \
if [ ! -e patches ]; then \
if [ -e debian/patches ] && [ ! -e patches ]; then \
ln -s debian/patches patches; \
fi; \
>$@