darwin: fix *_cmds installation

These just copy commands from Products/Release/. But with #52256 we
now build .dsym directories that somehow wind up in Products/Release/.
This makes things more exact by just copying the files in Products/Release/.
This commit is contained in:
Matthew Bauer 2018-12-29 23:58:10 -06:00
parent d0dc91d24f
commit 4f522648cb
8 changed files with 37 additions and 16 deletions

View File

@ -32,8 +32,11 @@ appleDerivation {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install Products/Release/* $out/bin/
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $file $out/bin/$(basename $f)
done
done
for n in 1 8; do
mkdir -p $out/share/man/man$n

View File

@ -13,8 +13,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install Products/Release/* $out/bin/
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $file $out/usr/bin/$(basename $f)
fi
done
for n in 1; do
mkdir -p $out/share/man/man$n

View File

@ -10,8 +10,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install Products/Release/* $out/bin/
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $f $out/bin/$(basename $f)
fi
done
for n in 1; do
mkdir -p $out/share/man/man$n

View File

@ -22,8 +22,10 @@ appleDerivation {
installPhase = ''
install -D Products/Release/libdisk.a $out/lib/libdisk.a
rm Products/Release/libdisk.a
for bin in Products/Release/*; do
install -D $bin $out/bin/$(basename $bin)
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $file $out/bin/$(basename $f)
done
done
'';

View File

@ -19,8 +19,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install Products/Release/* $out/bin
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $file $out/bin/$(basename $f)
done
done
for n in 1; do
mkdir -p $out/share/man/man$n

View File

@ -20,8 +20,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install Products/Release/* $out/bin/
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $file $out/bin/$(basename $f)
done
done
for n in 1 5; do
mkdir -p $out/share/man/man$n

View File

@ -28,8 +28,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/usr/bin
install Products/Release/* $out/usr/bin
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $f $out/usr/bin/$(basename $f)
fi
done
export DSTROOT=$out
export SRCROOT=$PWD

View File

@ -13,9 +13,10 @@ appleDerivation {
'';
installPhase = ''
mkdir -p $out/bin
for f in Products/Release/*; do
install -D $f $out/bin/$(basename $f)
if [ -f $f ]; then
install -D $f $out/bin/$(basename $f)
fi
done
'';