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 <olgeni@uli.it>
This commit is contained in:
Akinori MUSHA 2001-04-01 21:21:27 +00:00
parent e97bce7ae0
commit e295b0bcd2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40701
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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