Blame 0078-i18n-module-setup.sh-install_all_kbd-speedup-install.patch

Harald Hoyer 53e990
From 0dd85327dfbb788a5b23820a7413c4e1e96deafe Mon Sep 17 00:00:00 2001
Harald Hoyer 53e990
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 53e990
Date: Fri, 22 Jun 2012 15:21:11 +0200
Harald Hoyer 53e990
Subject: [PATCH] i18n/module-setup.sh:install_all_kbd(): speedup install
Harald Hoyer 53e990
Harald Hoyer 53e990
---
Harald Hoyer 53e990
 modules.d/10i18n/module-setup.sh |    6 +++---
Harald Hoyer 53e990
 1 file changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer 53e990
Harald Hoyer 53e990
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer 53e990
index d1854c2..7c8cd66 100755
Harald Hoyer 53e990
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer 53e990
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer 53e990
@@ -92,9 +92,9 @@ install() {
Harald Hoyer 53e990
     install_all_kbd() {
Harald Hoyer 53e990
         local rel f
Harald Hoyer 53e990
 
Harald Hoyer 53e990
-        find $(eval echo ${kbddir}/{${KBDSUBDIRS}}) -type f -print | \
Harald Hoyer 53e990
-            while read f; do
Harald Hoyer 53e990
-            inst_simple $f
Harald Hoyer 53e990
+        for _src in $(eval echo ${kbddir}/{${KBDSUBDIRS}}); do
Harald Hoyer 53e990
+            inst_dir "$_src"
Harald Hoyer 53e990
+            cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_src%/*}" "$_src"
Harald Hoyer 53e990
         done
Harald Hoyer 53e990
 
Harald Hoyer 53e990
         # remove unnecessary files