@@ -2650,6 +2650,10 @@ for host in "${ALL_HOSTS[@]}"; do
2650
2650
if ! [[ $( should_execute_action " ${host} -${tmp_product} -install" ) ]]; then
2651
2651
continue
2652
2652
fi
2653
+ if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2654
+ echo " --install-destdir is required to install products."
2655
+ exit 1
2656
+ fi
2653
2657
2654
2658
INSTALL_TARGETS=" install"
2655
2659
@@ -2692,20 +2696,12 @@ for host in "${ALL_HOSTS[@]}"; do
2692
2696
if [[ -z " ${INSTALL_LLDB} " ]] ; then
2693
2697
continue
2694
2698
fi
2695
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2696
- echo " --install-destdir is required to install products."
2697
- exit 1
2698
- fi
2699
2699
INSTALL_TARGETS=" install-distribution"
2700
2700
;;
2701
2701
xctest)
2702
2702
if [[ -z " ${INSTALL_XCTEST} " ]] ; then
2703
2703
continue
2704
2704
fi
2705
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2706
- echo " --install-destdir is required to install products."
2707
- exit 1
2708
- fi
2709
2705
2710
2706
case ${host} in
2711
2707
linux-* |freebsd-* |cygwin-* |haiku-* |android-* ) ;;
@@ -2727,11 +2723,6 @@ for host in "${ALL_HOSTS[@]}"; do
2727
2723
continue
2728
2724
fi
2729
2725
2730
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2731
- echo " --install-destdir is required to install products."
2732
- exit 1
2733
- fi
2734
-
2735
2726
;;
2736
2727
libdispatch|libdispatch_static)
2737
2728
if [[ -z " ${INSTALL_LIBDISPATCH} " ]] ; then
@@ -2765,10 +2756,6 @@ for host in "${ALL_HOSTS[@]}"; do
2765
2756
if [[ -z " ${INSTALL_LIBICU} " ]]; then
2766
2757
continue
2767
2758
fi
2768
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2769
- echo " --install-destdir is required to install products."
2770
- exit 1
2771
- fi
2772
2759
echo " --- Installing ${product} ---"
2773
2760
ICU_BUILD_DIR=$( build_directory ${host} ${product} )
2774
2761
ICU_INSTALL_DIR=" $( get_host_install_destdir ${host} ) $( get_host_install_prefix ${host} ) "
@@ -2806,10 +2793,6 @@ for host in "${ALL_HOSTS[@]}"; do
2806
2793
if [[ -z " ${INSTALL_PLAYGROUNDSUPPORT} " ]] ; then
2807
2794
continue
2808
2795
fi
2809
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2810
- echo " --install-destdir is required to install products."
2811
- exit 1
2812
- fi
2813
2796
2814
2797
echo " --- Installing ${product} ---"
2815
2798
@@ -2845,11 +2828,6 @@ for host in "${ALL_HOSTS[@]}"; do
2845
2828
;;
2846
2829
esac
2847
2830
2848
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2849
- echo " --install-destdir is required to install products."
2850
- exit 1
2851
- fi
2852
-
2853
2831
echo " --- Installing ${product} ---"
2854
2832
build_dir=$( build_directory ${host} ${product} )
2855
2833
0 commit comments