소스 검색

workaround brain-dead Sun Solaris sed(1) which silently discards the last line of input in case it isn't terminated with a newline character

Ralf S. Engelschall 19 년 전
부모
커밋
0828bf0d3a
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      perl-openpkg/perl-openpkg.pl
  2. 1 1
      perl-openpkg/perl-openpkg.spec

+ 2 - 2
perl-openpkg/perl-openpkg.pl

@@ -386,14 +386,14 @@ if (grep { $_ eq "configure" } @steps_run) {
         &verbose("configuring module via Module::Build environment");
         &runcmd("chmod u+rw Build.PL");
         &runcmd("cp Build.PL Build.PL.orig");
-        &runcmd("sed -e \"s:\\\$^X:'$perlwrap':g\" <Build.PL.orig >Build.PL");
+        &runcmd("(cat Build.PL.orig; echo '') | sed -e \"s:\\\$^X:'$perlwrap':g\" >Build.PL");
         &runcmd("$perlwrap ./Build.PL $perl_args");
     }
     elsif ($environment eq 'ExtUtils::MakeMaker') {
         &verbose("configuring module via ExtUtils::MakeMaker environment");
         &runcmd("chmod u+rw Makefile.PL");
         &runcmd("cp Makefile.PL Makefile.PL.orig");
-        &runcmd("sed -e \"s:\\\$^X:'$perlwrap':g\" <Makefile.PL.orig >Makefile.PL");
+        &runcmd("(cat Makefile.PL.orig; echo '') | sed -e \"s:\\\$^X:'$perlwrap':g\" >Makefile.PL");
         &runcmd("$perlwrap ./Makefile.PL $perl_args");
     }
 }

+ 1 - 1
perl-openpkg/perl-openpkg.spec

@@ -36,7 +36,7 @@ Class:        BASE
 Group:        Perl
 License:      PD
 Version:      %{V_perl}
-Release:      20060923
+Release:      20060930
 
 #   list of sources
 Source0:      perl-openpkg.pl