mass-replace deprecated usage of find -perm (Fixes #9044)

sed 's|-perm +0|-perm /0|g'
It's a mass-rebuild due to usage in stdenv's default setup hooks.
This commit is contained in:
Vladimír Čunát
2015-07-30 10:30:17 +02:00
parent fd9e9201d6
commit 862900e42e
9 changed files with 10 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ wrapPythonProgramsIn() {
done
# Find all regular files in the output directory that are executable.
for f in $(find "$dir" -type f -perm +0100); do
for f in $(find "$dir" -type f -perm /0100); do
# Rewrite "#! .../env python" to "#! /nix/store/.../python".
if head -n1 "$f" | grep -q '#!.*/env.*\(python\|pypy\)'; then
sed -i "$f" -e "1 s^.*/env[ ]*\(python\|pypy\)^#! $python^"