1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/build-support/substitute/substitute-all.sh
Eelco Dolstra 7558076e10 * Allow post/pre-install hooks.
svn path=/nixpkgs/trunk/; revision=10629
2008-02-12 08:42:33 +00:00

20 lines
246 B
Bash

source $stdenv/setup
eval "$preInstall"
args=
target=$out
if test -n "$dir"; then
target=$out/$dir/$name
ensureDir $out/$dir
fi
substituteAll $src $target
if test -n "$isExecutable"; then
chmod +x $target
fi
eval "$postInstall"