Jelmer's previous patch failed because sh is very fussy about it's
syntax, but only compaled in this case if you take the 'no existing
binary' path.
Andrew Bartlett
$(DESTDIR)$(bindir)/%: bin/% installdirs
@mkdir -p $(@D)
@echo Installing $(@F) as $@
- @if test -f $@; then; rm -f $@.old; mv $@ $@.old; fi
+ @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
@cp $< $@
@chmod $(INSTALLPERMS) $@
$(DESTDIR)$(sbindir)/%: bin/% installdirs
@mkdir -p $(@D)
@echo Installing $(@F) as $@
- @if test -f $@; then; rm -f $@.old; mv $@ $@.old; fi
+ @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
@cp $< $@
@chmod $(INSTALLPERMS) $@