@@ -2679,6 +2679,10 @@ for host in "${ALL_HOSTS[@]}"; do
2679
2679
if ! [[ $( should_execute_action " ${host} -${tmp_product} -install" ) ]]; then
2680
2680
continue
2681
2681
fi
2682
+ if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2683
+ echo " --install-destdir is required to install products."
2684
+ exit 1
2685
+ fi
2682
2686
2683
2687
INSTALL_TARGETS=" install"
2684
2688
@@ -2721,20 +2725,12 @@ for host in "${ALL_HOSTS[@]}"; do
2721
2725
if [[ -z " ${INSTALL_LLDB} " ]] ; then
2722
2726
continue
2723
2727
fi
2724
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2725
- echo " --install-destdir is required to install products."
2726
- exit 1
2727
- fi
2728
2728
INSTALL_TARGETS=" install-distribution"
2729
2729
;;
2730
2730
xctest)
2731
2731
if [[ -z " ${INSTALL_XCTEST} " ]] ; then
2732
2732
continue
2733
2733
fi
2734
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2735
- echo " --install-destdir is required to install products."
2736
- exit 1
2737
- fi
2738
2734
2739
2735
case ${host} in
2740
2736
linux-* |freebsd-* |cygwin-* |haiku-* |android-* ) ;;
@@ -2756,11 +2752,6 @@ for host in "${ALL_HOSTS[@]}"; do
2756
2752
continue
2757
2753
fi
2758
2754
2759
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2760
- echo " --install-destdir is required to install products."
2761
- exit 1
2762
- fi
2763
-
2764
2755
;;
2765
2756
libdispatch|libdispatch_static)
2766
2757
if [[ -z " ${INSTALL_LIBDISPATCH} " ]] ; then
@@ -2794,10 +2785,6 @@ for host in "${ALL_HOSTS[@]}"; do
2794
2785
if [[ -z " ${INSTALL_LIBICU} " ]]; then
2795
2786
continue
2796
2787
fi
2797
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2798
- echo " --install-destdir is required to install products."
2799
- exit 1
2800
- fi
2801
2788
echo " --- Installing ${product} ---"
2802
2789
ICU_BUILD_DIR=$( build_directory ${host} ${product} )
2803
2790
ICU_INSTALL_DIR=" $( get_host_install_destdir ${host} ) $( get_host_install_prefix ${host} ) "
@@ -2835,10 +2822,6 @@ for host in "${ALL_HOSTS[@]}"; do
2835
2822
if [[ -z " ${INSTALL_PLAYGROUNDSUPPORT} " ]] ; then
2836
2823
continue
2837
2824
fi
2838
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2839
- echo " --install-destdir is required to install products."
2840
- exit 1
2841
- fi
2842
2825
2843
2826
echo " --- Installing ${product} ---"
2844
2827
@@ -2874,11 +2857,6 @@ for host in "${ALL_HOSTS[@]}"; do
2874
2857
;;
2875
2858
esac
2876
2859
2877
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2878
- echo " --install-destdir is required to install products."
2879
- exit 1
2880
- fi
2881
-
2882
2860
echo " --- Installing ${product} ---"
2883
2861
build_dir=$( build_directory ${host} ${product} )
2884
2862
0 commit comments