# 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
}