cleanup-workdir: add a script to clean up WORKDIR
authorKang Kai <kai.kang@windriver.com>
Tue, 6 Mar 2012 03:19:15 +0000 (11:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Mar 2012 15:33:04 +0000 (15:33 +0000)
commita469be17f5d80f10ba9bdcff872e796f6ab2d7ae
tree32ff968469865f2997aa735a0a9e31d4f273748f
parentdddf8b73edabf85d9dd347aa623d8518cd80b573
cleanup-workdir: add a script to clean up WORKDIR

[Yocto 1561]
Add script cleanup-workdir to clean up WORKDIR. It checks every
package build directories under WORKDIR then parse the directory
name to get package name and version. If the version is not the
package prefer version then delete the directory.

(From OE-Core rev: 5eecfa7e504970a9ffde95e568ed7f8e7d6288b9)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/cleanup-workdir [new file with mode: 0755]