From e295b0bcd296c0eecc4707b2b25f76eff5fd7f1b Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 1 Apr 2001 21:21:27 +0000 Subject: [PATCH] Do a ${MV} with -f so that the installation process won't stop and ask a question when some version of ruby is already installed. This is useful when you want to automatically upgrade the port using portupgrade. :) Submitted by: Jimmy Olgeni --- lang/ruby/Makefile | 2 +- lang/ruby16/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile index 3cb73fb361e7..2de3aef69763 100644 --- a/lang/ruby/Makefile +++ b/lang/ruby/Makefile @@ -58,7 +58,7 @@ post-patch: post-install: strip ${RUBY} .if empty(RUBY_SUFFIX) - ${MV} ${RUBY} ${RUBY}${_RUBY_SUFFIX} + ${MV} -f ${RUBY} ${RUBY}${_RUBY_SUFFIX} ${LN} -fs ${RUBY}${_RUBY_SUFFIX} ${RUBY} ${MV} ${PREFIX}/man/man1/ruby.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1 .else diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile index 3cb73fb361e7..2de3aef69763 100644 --- a/lang/ruby16/Makefile +++ b/lang/ruby16/Makefile @@ -58,7 +58,7 @@ post-patch: post-install: strip ${RUBY} .if empty(RUBY_SUFFIX) - ${MV} ${RUBY} ${RUBY}${_RUBY_SUFFIX} + ${MV} -f ${RUBY} ${RUBY}${_RUBY_SUFFIX} ${LN} -fs ${RUBY}${_RUBY_SUFFIX} ${RUBY} ${MV} ${PREFIX}/man/man1/ruby.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1 .else