src_distribute_local: fix quoting
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Mon, 15 Mar 2010 07:05:41 +0000 (08:05 +0100)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Mon, 15 Mar 2010 07:09:51 +0000 (08:09 +0100)
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
classes/src_distribute_local.bbclass

index 5cec288..8cf0b42 100644 (file)
@@ -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
 }