summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2012-03-26 18:49:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-26 23:13:20 +0100
commitb711d7b631accaac238b68cfd5bd44995382fc72 (patch)
treef61aae5947e1fa64a1437a5e6e9ca28e367a25e6 /meta/classes
parent34c93234ca59e4a31734827aae0c5ebaaab26a1d (diff)
downloadpoky-b711d7b631accaac238b68cfd5bd44995382fc72.tar.gz
src_distributelocal.bbclass: Remove src_distribute_local.bbclass
This bbclass has been merged into archiver.bbclass [#YOCTO 1977] (From OE-Core rev: be5a531b47b6b8875ba03dd5ab5f2fc84088718e) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/src_distribute_local.bbclass33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/classes/src_distribute_local.bbclass b/meta/classes/src_distribute_local.bbclass
deleted file mode 100644
index 17b67e3d16..0000000000
--- a/meta/classes/src_distribute_local.bbclass
+++ /dev/null
@@ -1,33 +0,0 @@
1inherit src_distribute
2
3# SRC_DIST_LOCAL possible values:
4# copy copies the files to the distributedir
5# symlink symlinks the files to the distributedir
6# move+symlink moves the files into distributedir, and symlinks them back
7SRC_DIST_LOCAL ?= "move+symlink"
8SRC_DISTRIBUTEDIR ?= "${DEPLOY_DIR}/sources"
9SRC_DISTRIBUTECOMMAND () {
10 s="${SRC}"
11 d="${DEST}"
12
13 mkdir -p ${SRC_DISTRIBUTEDIR}
14
15 if echo $d | grep -q '/$'; then
16 mkdir -p ${SRC_DISTRIBUTEDIR}/$d
17 fi
18
19 case "${SRC_DIST_LOCAL}" in
20 copy)
21 test -e $s.md5 && cp -f $s.md5 ${SRC_DISTRIBUTEDIR}/$d.md5
22 cp -f $s ${SRC_DISTRIBUTEDIR}/$d
23 ;;
24 symlink)
25 test -e $s.md5 && ln -sf $s.md5 ${SRC_DISTRIBUTEDIR}/$d.md5
26 ln -sf $s ${SRC_DISTRIBUTEDIR}/$d
27 ;;
28 move+symlink)
29 mv $s ${SRC_DISTRIBUTEDIR}/$d
30 ln -sf ${SRC_DISTRIBUTEDIR}/$d $s
31 ;;
32 esac
33}