File devscripts-buildfix.diff of Package deb.900

diff -uprN devscripts-2.10.55.orig/Makefile devscripts-2.10.55/Makefile
--- devscripts-2.10.55.orig/Makefile	2009-05-02 20:31:54.000000000 +0200
+++ devscripts-2.10.55/Makefile	2009-11-12 11:07:01.000000000 +0100
@@ -7,7 +7,7 @@ DESTDIR =
 PERL_MODULES = Devscripts
 EXAMPLES = conf.default
 
-all: version scripts $(EXAMPLES) translated_manpages
+all: version scripts $(EXAMPLES)
 
 version:
 	rm -f version
diff -uprN devscripts-2.10.55.orig/scripts/Makefile devscripts-2.10.55/scripts/Makefile
--- devscripts-2.10.55.orig/scripts/Makefile	2009-07-22 13:54:25.000000000 +0200
+++ devscripts-2.10.55/scripts/Makefile	2009-11-12 11:10:10.000000000 +0100
@@ -14,7 +14,7 @@ COMPL_FILES := $(wildcard *.bash_complet
 COMPLETION = $(patsubst %.bash_completion,devscripts.%,$(COMPL_FILES))
 
 GEN_MAN1S = bts.1 build-rdeps.1 chdist.1 dcontrol.1 debcheckout.1 debcommit.1 \
-	    deb-reversion.1 desktop2menu.1 dget.1 licensecheck.1 mass-bug.1 \
+	    desktop2menu.1 dget.1 licensecheck.1 mass-bug.1 \
 	    mk-build-deps.1 namecheck.1 rmadison.1 svnpath.1 tagpending.1 \
 	    transition-check.1 devscripts.1
 
@@ -22,16 +22,16 @@ BINDIR = /usr/bin
 LIBDIR = /usr/lib/devscripts
 BIN_LIBDIR = /usr/lib/devscripts
 
-all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS) $(COMPLETION)
+all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS)
 
 %: %.sh
 
 %.tmp: %.sh $(VERSION_FILE)
 	sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-	bash -n $@
+	#bash -n $@
 %.tmp: %.pl $(VERSION_FILE)
 	sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-	perl -I.. -c $@
+	#perl -I.. -c $@
 %: %.tmp
 	cp $< $@
 	chmod +x $@
@@ -62,10 +62,12 @@ clean:
 		libvfork.o libvfork.so.0 $(COMPLETION)
 
 install: all
+	mkdir -p $(DESTDIR)$(BINDIR)
+	mkdir -p $(DESTDIR)$(LIBDIR)
 	cp $(SCRIPTS) $(DESTDIR)$(BINDIR)
 	cp $(LIBS) $(DESTDIR)$(LIBDIR)
-	cp $(COMPLETION) $(DESTDIR)/etc/bash_completion.d
 	# Special treatment for debpkg
+	mkdir -p $(DESTDIR)$(PERLMOD_DIR)
 	mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(PERLMOD_DIR)
 	cp debpkg-wrapper $(DESTDIR)$(BINDIR)/debpkg
openSUSE Build Service is sponsored by