diff options
author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2010-03-15 08:05:41 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2010-03-15 08:09:51 +0100 |
commit | a9ecfad820594837aa3a0610b7d718c5dd8904dd (patch) | |
tree | adba4e1b2decb389fd9db1ab48af112a1244c43d /classes | |
parent | 50c9da4c353cde2afdc142674593c56d1f1d484f (diff) |
src_distribute_local: fix quoting
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'classes')
-rw-r--r-- | 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 5cec2880aa..8cf0b426c0 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 } |