summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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}