DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/source" EXCLUDE_FROM ?= ".pc autom4te.cache" # used as part of a path. make sure it's set DISTRO ?= "openembedded" def get_src_tree(d): import bb import os, os.path workdir = bb.data.getVar('WORKDIR', d, 1) if not workdir: bb.error("WORKDIR not defined, unable to find source tree.") return s = bb.data.getVar('S', d, 0) if not s: bb.error("S not defined, unable to find source tree.") return s_tree_raw = s.split('/')[1] s_tree = bb.data.expand(s_tree_raw, d) src_tree_path = os.path.join(workdir, s_tree) try: os.listdir(src_tree_path) except OSError: bb.fatal("Expected to find source tree in '%s' which doesn't exist." % src_tree_path) bb.debug("Assuming source tree is '%s'" % src_tree_path) return s_tree sourcepkg_do_create_orig_tgz(){ mkdir -p ${DEPLOY_DIR_SRC} cd ${WORKDIR} for i in ${EXCLUDE_FROM}; do echo $i >> temp/exclude-from-file done src_tree=${@get_src_tree(d)} echo $src_tree oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz" tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree cp -pPR $src_tree $src_tree.orig } sourcepkg_do_archive_bb() { src_tree=${@get_src_tree(d)} dest=${WORKDIR}/$src_tree/${DISTRO} mkdir -p $dest cp ${FILE} $dest } python sourcepkg_do_dumpdata() { import os import os.path workdir = bb.data.getVar('WORKDIR', d, 1) distro = bb.data.getVar('DISTRO', d, 1) s_tree = get_src_tree(d) openembeddeddir = os.path.join(workdir, s_tree, distro) dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) try: os.mkdir(openembeddeddir) except OSError: # dir exists pass bb.note("Dumping metadata into '%s'" % dumpfile) f = open(dumpfile, "w") # emit variables and shell functions bb.data.emit_env(f, d, True) # emit the metadata which isnt valid shell for e in d.keys(): if bb.data.getVarFlag(e, 'python', d): f.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1))) f.close() } sourcepkg_do_create_diff_gz(){ cd ${WORKDIR} for i in ${EXCLUDE_FROM}; do echo $i >> temp/exclude-from-file done src_tree=${@get_src_tree(d)} for i in `find . -maxdepth 1 -type f`; do mkdir -p $src_tree/${DISTRO}/files cp $i $src_tree/${DISTRO}/files done oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz" LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz rm -rf $src_tree.orig } EXPORT_FUNCTIONS do_create_orig_tgz do_archive_bb do_dumpdata do_create_diff_gz addtask create_orig_tgz after do_unpack before do_patch addtask archive_bb after do_patch before do_dumpdata addtask dumpdata after do_archive_bb before do_create_diff_gz addtask create_diff_gz after do_dump_data before do_configure oe.git/log/packages/monotone?id=3b9a91139a1cc962e1b2801c9b900a9999f86841&showmsg=1'>Expand)AuthorFiles 2007-11-12monotone: update to 0.37Koen Kooi3 2007-04-01monotone: add 0.34Koen Kooi1 2007-03-21monotone-6: Fix path instead of trying to remove a file in a nonexisting loca...Oyvind Repvik1 2007-03-21monotone-6: Add '-f' to rm, incase the file isn't there.Oyvind Repvik1 2007-03-01monotone: add 0.33, with a slight hack to silence scanelfKoen Kooi1 2006-12-31remove extra whitespace at end-of-line in about 900 bb files.Rolf Leggewie3 2006-12-18monotone: add 0.31Koen Kooi2 2006-10-10Remove MAINTAINER fields from recipes, add MAINTAINER file to replace them.Koen Kooi1 2006-08-05packages: sed -i s/^"include "/"require "/ */*.bb GNU sed rocks!Holger Freyther7 2006-07-11monotone: add 0.27 Koen Kooi1 2006-05-27monotone: add missing patchKoen Kooi1 2006-04-28monotone: add 0.26Koen Kooi1 2006-04-28monotone: add 0.25.2, closes #876 Koen Kooi2 2005-11-30monotone-5: release 0.24John Bowler1 2005-10-26slugos, openslug, ucslugc: move to new slugos base distro in openslug 3.0, uc...John Bowler2 2005-10-03monotone: monotone-0.23John Bowler2 2005-09-19Make cp invocations BSD compatibleHolger Freyther1 2005-09-09uclibc, alsa, monotone-5, util-linux: enable thumb on ucslugc, disable it on ...John Bowler1 2005-08-12monotone-5 0.22 - the LUA hook for anonymous_read must be updated (movedJohn Bowler2 2005-07-18monotone 0.21 and associated patchesJohn Bowler4 2005-07-16monotone: extract common stuff into monotone.incMichael Lauer3 2005-07-15mpd does not build on osuclibc because libvorbis will not build, thatJohn Bowler2 2005-07-12Working, tested, versions of monotone. These past most aspects of theJohn Bowler3 2005-07-06Building but not working monotone - still has problems in cryptopp (inJohn Bowler1 2005-07-06Working (db init capable) version of monotone. r1 fixes an endiannessJohn Bowler2 2005-07-05Builds but has bugs in very basic functionality (db init does not work).John Bowler4 5e5386e91923428'>sylpheed_2.2.7.bb : new versionGraeme Gregory1