[oe-commits] Marcin Juszkiewicz : src_distribute_local: fix quoting

git version control git at git.openembedded.org
Mon Mar 15 07:35:20 UTC 2010


Module: openembedded.git
Branch: eFfeM/sanity
Commit: a9ecfad820594837aa3a0610b7d718c5dd8904dd
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a9ecfad820594837aa3a0610b7d718c5dd8904dd

Author: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
Date:   Mon Mar 15 08:05:41 2010 +0100

src_distribute_local: fix quoting

Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>

---

 classes/src_distribute_local.bbclass |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/classes/src_distribute_local.bbclass b/classes/src_distribute_local.bbclass
index 5cec288..8cf0b42 100644
--- a/classes/src_distribute_local.bbclass
+++ b/classes/src_distribute_local.bbclass
@@ -6,24 +6,24 @@ SRC_DISTRIBUTECOMMAND[dirs] = "${SRC_DISTRIBUTEDIR}/${LIC}/${PN}"
 
 # symlinks the files to the SRC_DISTRIBUTEDIR
 SRC_DISTRIBUTECOMMAND-symlink () {
-    test -e ${SRC}.md5 && ln -sf ${SRC}.md5 .
-    ln -sf ${SRC} .
+    test -e "${SRC}.md5" && ln -sf "${SRC}.md5" .
+    ln -sf "${SRC}" .
 }
 
 # copies the files to the SRC_DISTRIBUTEDIR
 SRC_DISTRIBUTECOMMAND-copy () {
-    test -e ${SRC}.md5 && cp -f ${SRC}.md5 .
-    cp -fr ${SRC} .
+    test -e "${SRC}.md5" && cp -f "${SRC}.md5" .
+    cp -fr "${SRC}" .
 }
 
 # moves the files to the SRC_DISTRIBUTEDIR and symlinks them back
 SRC_DISTRIBUTECOMMAND-move+symlink () {
     if ! [ -L ${SRC} ]; then
         mv ${SRC} .
-        ln -sf $PWD/`basename ${SRC}` ${SRC}
+        ln -sf $PWD/`basename "${SRC}"` "${SRC}"
         if [ -e ${SRC}.md5 ]; then
             mv ${SRC}.md5 .
-            ln -sf $PWD/`basename ${SRC}.md5` ${SRC}.md5
+            ln -sf $PWD/`basename "${SRC}.md5"` "${SRC}.md5"
         fi
     fi
 }





More information about the Openembedded-commits mailing list