All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-baryon][PATCH] webmin: remove use of the rename command
@ 2012-07-23 17:59 Kevin Strasser
  2012-07-23 22:05 ` Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Strasser @ 2012-07-23 17:59 UTC (permalink / raw)
  To: yocto

Several webmin modules are left out of the build due to
misuse of the rename command. Acceptable use of the rename
command depends on the version being supplied. Without knowledge
of the version being used it is possible that any particular
use will result in syntax errors.

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
---
 recipes-extended/webmin/webmin_1.570.bb |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-extended/webmin/webmin_1.570.bb b/recipes-extended/webmin/webmin_1.570.bb
index 63a1ed2..d7e14de 100644
--- a/recipes-extended/webmin/webmin_1.570.bb
+++ b/recipes-extended/webmin/webmin_1.570.bb
@@ -53,7 +53,11 @@ do_configure() {
     sed -i "s/netstd_nfs/nfsserver/" exports/config-generic-linux
 
     # Fix insane naming that causes problems at packaging time (must be done before deleting below)
-    find . -name "*\**" -exec rename \* ALL {} \;
+    find . -name "*\**" | while read from
+    do
+        to=`echo "$from" | sed "s/*/ALL/"`
+        mv "$from" "$to"
+    done
 
     # Remove some other files we don't need
     find . -name "config-*" -a \! -name "config-generic-linux" -a \! -name "config-ALL-linux" -a \! -name "*.pl" -delete
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-23 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23 17:59 [meta-baryon][PATCH] webmin: remove use of the rename command Kevin Strasser
2012-07-23 22:05 ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.