rebar3Relx: only link executables in $out/bin
This commit is contained in:
parent
8588b80af4
commit
4b0ea06ff3
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ let
|
||||||
dir=${if releaseType == "escript"
|
dir=${if releaseType == "escript"
|
||||||
then "bin"
|
then "bin"
|
||||||
else "rel"}
|
else "rel"}
|
||||||
mkdir -p "$out/$dir"
|
mkdir -p "$out/$dir" "$out/bin"
|
||||||
cp -R --preserve=mode "_build/${profile}/$dir" "$out"
|
cp -R --preserve=mode "_build/${profile}/$dir" "$out"
|
||||||
${lib.optionalString (releaseType == "release")
|
${lib.optionalString (releaseType == "release")
|
||||||
"mkdir -p $out/bin && ln -s -t $out/bin $out/rel/*/bin/*"}
|
"find $out/rel/*/bin -type f -executable -exec ln -s -t $out/bin {} \\;"}
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue