From: Richard Levitte Date: Wed, 3 Feb 2016 23:40:41 +0000 (+0100) Subject: Make the mk1mf 'mv' command variable X-Git-Tag: OpenSSL_1_1_0-pre3~294 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db73bd220816feb6c9d1531d0ac76e09fd4c4a4a;p=oweals%2Fopenssl.git Make the mk1mf 'mv' command variable Reviewed-by: Rich Salz --- diff --git a/util/mk1mf.pl b/util/mk1mf.pl index f9eeea8e65..1f9bdf47b7 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -182,6 +182,7 @@ $tmp_def="tmp"; $perl="perl" unless defined $perl; $mkdir="-mkdir" unless defined $mkdir; +$mv="mv" unless defined $mv; ($ssl,$crypto)=("ssl","crypto"); $ranlib="echo ranlib"; @@ -661,6 +662,7 @@ PERLASM_SCHEME=$mf_perlasm_scheme CP=$cp CP2=$cp2 RM=$rm +MV=$mv RANLIB=$ranlib MKDIR=$mkdir MKLIB=$bin_dir$mklib @@ -1352,7 +1354,7 @@ sub do_dofile_rule return <<"EOF"; $to${o}$file: $tmpl \$(PERL) "-I." "-Mconfigdata" util/dofile.pl "$tmpl" > "$to${o}$file.new" - mv "$to${o}$file.new" "$to${o}$file" + \$(MV) "$to${o}$file.new" "$to${o}$file" EOF } diff --git a/util/pl/BC-32.pl b/util/pl/BC-32.pl index 36ad6823be..f0f8c9e8d1 100644 --- a/util/pl/BC-32.pl +++ b/util/pl/BC-32.pl @@ -8,6 +8,7 @@ $crypto="libeay32"; $o='\\'; $cp='copy'; $rm='del'; +$mv='move /Y"; # C compiler stuff $cc='bcc32'; diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index 73160e9ebd..36e52dd27a 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -26,6 +26,7 @@ $cp='$(PERL) util/copy.pl'; $cp2='$(PERL) util/copy.pl -stripcr'; $mkdir='$(PERL) util/mkdir-p.pl'; $rm='del /Q'; +$mv='move /Y"; $zlib_lib="zlib1.lib"; diff --git a/util/pl/netware.pl b/util/pl/netware.pl index 4e6f876378..145911c9e2 100644 --- a/util/pl/netware.pl +++ b/util/pl/netware.pl @@ -126,6 +126,8 @@ else $cp='copy >nul:'; # rm command $rm='del /f /q'; + # mv command + $mv='move /y'; } # assembler