3
0
Fork 0
forked from mirrors/nixpkgs

Fixed shebangfix

svn path=/nixpkgs/trunk/; revision=10492
This commit is contained in:
Michael Raskin 2008-02-04 12:07:27 +00:00
parent 6d07280263
commit cc1a66d42d

View file

@ -8,13 +8,14 @@ stdenv.mkDerivation {
phases = "buildPhase";
buildPhase = "
ensureDir \$out/bin
s=\$out/bin/shebangfix
cp \$file \$s
chmod +x \$s
perl \$s \$s
";
buildPhase = ''
ensureDir $out/bin
s=$out/bin/shebangfix
cp $file $s
chmod +wx $s
ls -l $s
perl $s $s
'';
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
}