Parallel execution localedef 24/254724/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_x tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.5/unified/20211028.095720 accepted/tizen/7.0/unified/20221110.061301 accepted/tizen/7.0/unified/hotfix/20221116.105131 accepted/tizen/8.0/unified/20231005.093151 accepted/tizen/9.0/unified/20241030.233209 accepted/tizen/unified/20210309.140634 accepted/tizen/unified/20250526.072346 accepted/tizen/unified/x/20240715.042446 accepted/tizen/unified/x/20250526.075121 submit/tizen/20210309.022239 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 8 Mar 2021 12:09:19 +0000 (21:09 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 9 Mar 2021 01:30:57 +0000 (10:30 +0900)
for build speedup

Change-Id: Id2f71d1e941c58381bcfb7f28e1316335ba23da1
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
packaging/tizen-locale.spec

index 2097270cc05d23d4c1fe29338408092b868a6b8e..aa5a0c982cf6b7cc5a7cea52f1e86ac983d1df33 100644 (file)
@@ -55,11 +55,28 @@ REGEX="(bhb_IN|tcy_IN|aa_DJ|aa_ER|aa_ET|af_ZA|am_ET|an_ES|ar_AE|ar_BH|ar_DZ|ar_E
 
 REGEX=`echo $REGEX | sed "s#\<en\>#en_GB#" | sed "s#\<[a-z]\+\>#&_.*#g"`
 
+pids=
+count=1
 for LOCALE in `grep -E "^\<$REGEX\>.*/$CHARSET" localedata/SUPPORTED | cut -d '/' -f 1`
 do
-       I18NPATH=localedata GCONV_PATH=iconvdata localedef --quiet -c -f $CHARSET -i ${LOCALE%%.*} $LOCALE_DIR/$LOCALE
+       I18NPATH=localedata GCONV_PATH=iconvdata localedef --quiet -c -f $CHARSET -i ${LOCALE%%.*} $LOCALE_DIR/$LOCALE &
+       pids="$pids $!"
+       count=`expr $count + 1`
+       if [ $count = 5 ]; then
+               for pid in $pids; do
+                       wait $pid
+               done
+               pids=
+               count=1
+       fi
 done
 
+if [ ! -z "$pids" ]; then
+       for pid in $pids; do
+               wait $pid
+       done
+fi
+
 mkdir -p %{buildroot}%{_datadir}/i18n/
 make -f %{SOURCE10} IN=localedata/SUPPORTED OUT=%{buildroot}%{_datadir}/i18n/SUPPORTED