From: Jarkko Hietaniemi Date: Thu, 21 Jun 2001 14:47:48 +0000 (+0000) Subject: Cross-configuration changes: make $from to rm the files X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=93c0359c9f270232f891acab946b0616c398115b;p=p5sagit%2Fp5-mst-13.2.git Cross-configuration changes: make $from to rm the files before copying them over (this means that he rm can be removed from the fflushall test), create $targetmkdir (not documented in install since it is supposed to internal use only), make $run to copy over the executable only if a stamp file .xok doesn't already exist (to avoid unnecessary copying of the executable) p4raw-id: //depot/perl@10788 --- diff --git a/Configure b/Configure index bc8ad9d..db14b23 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Jun 20 22:37:47 EET DST 2001 [metaconfig 3.0 PL70] +# Generated on Thu Jun 21 18:44:48 EET DST 2001 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <$run <&4 exit 1 ;; esac + case "$targetmkdir" in + */Cross/mkdir) + cat >$targetmkdir <&4 + exit 1 + ;; + esac case "$targetto" in scp|rcp) cat >$to <$to <&4 @@ -2452,6 +2500,7 @@ EOF #!/bin/sh for f in \$@ do + $rm -f \$f $targetfrom $q $targetuser@$targethost:$targetdir/\$f . || exit 1 done exit 0 @@ -2461,6 +2510,7 @@ EOF #!/bin/sh for f in \$@ do + $rm -f \$f cp $targetdir/\$f . || exit 1 done exit 0 @@ -13793,7 +13843,6 @@ if $test "X$fflushNULL" = X -o "X$fflushall" = X; then output='' set try -DTRY_FPUTC if eval $compile; then - $rm -f try.out $run ./try 2>/dev/null code="$?" $from try.out @@ -13805,7 +13854,6 @@ if $test "X$fflushNULL" = X -o "X$fflushall" = X; then '') set try -DTRY_FPRINTF if eval $compile; then - $rm -f try.out $run ./try 2>/dev/null code="$?" $from try.out @@ -13820,7 +13868,6 @@ fi case "$fflushNULL" in '') set try -DTRY_FFLUSH_NULL $output if eval $compile; then - $rm -f try.out $run ./try 2>/dev/null code="$?" $from try.out @@ -13945,7 +13992,6 @@ EOM $cat >&4 </dev/null code=$? $from try.out diff --git a/Makefile.SH b/Makefile.SH index 133fd33..808ca9c 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -481,6 +481,7 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) *) $spitshell >>Makefile <<'!NO!SUBS!' miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) + -@rm -f miniperl.xok $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs) $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '' || $(MAKE) minitest @@ -491,6 +492,7 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $spitshell >>Makefile <<'!NO!SUBS!' perl: $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT) + -@rm -f miniperl.xok $(SHRPENV) $(LDLIBPTH) $(CC) -o perl$(PERL_SUFFIX) $(PERL_PROFILING) $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) # Purify/Quantify Perls. @@ -823,7 +825,7 @@ _mopup: -rm -f perl.loadmap miniperl.loadmap perl.prelmap miniperl.prelmap -rm -f perl.third lib*.so.perl.third perl.3log t/perl.third t/perl.3log -rm -f perl.pixie lib*.so.perl.pixie lib*.so.Addrs - -rm -f perl.Addrs perl.Counts t/perl.Addrs t/perl.Counts + -rm -f perl.Addrs perl.Counts t/perl.Addrs t/perl.Counts *perl.xok rm -f perl suidperl miniperl $(LIBPERL) libperl.* microperl # Do not 'make _tidy' directly.