This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LICENSE = "GPL" | |
DESCRIPTION = "procfs tools" | |
SECTION = "base" | |
PRIORITY = "required" | |
DEPENDS = "ncurses virtual/libintl" | |
SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz \ | |
file://libintl-link.patch;patch=1" | |
S = "${WORKDIR}/psmisc-${PV}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from shlex import shlex | |
import string | |
import os | |
class ParseError(Exception): | |
def __init__(self, lex, message): | |
self.lex = lex | |
self.lineno = lex.lineno |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from collections import deque | |
def stackiter(iterable): | |
iterator = iter(iterable) | |
stack = deque() | |
while True: | |
if stack: | |
val = stack.pop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python () { | |
from bb.data import expand | |
# Compatibility | |
for k in d.keys(): | |
if d.getVarFlag(k, "task"): | |
deps = expand(d.getVarFlag(k, "depends") or "", d) | |
if deps: | |
d.setVarFlag(k, "depends", deps.replace(":do_populate_staging", ":do_capture")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# missingdeps.bbclass: Check for missing recipe dependencies. | |
# | |
# The initial implementation leverages the automatic rdepends code from | |
# package.bbclass to determine if we actually depend upon the things we used. | |
# | |
# Available user configuration variables: | |
# MISSINGDEPS_ENABLE - Set to non-empty to enable, empty to disable. By | |
# default, it's enabled if you're linking with | |
# -Wl,--as-needed. | |
# MISSINGDEPS_ERROR - Fail the do_package task if non-empty, just show an |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s compat31 2>/dev/null | |
usage () { | |
echo 'Usage: magic_rsync.sh [OPTION]... FROM TO' | |
echo 'Run rsync from one location to another, manually processing specific groups of files.' | |
echo | |
echo ' -p PAT -c CMD For each file matching pattern PAT, run CMD against it.' | |
echo ' CMD is passed the filename relative to transfer root, FROM, and TO.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These scripts are intended to make it easier to keep track of cherry picks | |
between long lived branches/forks. | |
The available scripts: | |
git-origin - associates an origin for a commit.. where it was cherry picked from | |
git-origin-blacklist - blacklists a commit from the output of the tools, | |
useful for bits you know are local-only | |
git-origins-from-patchid - uses patchids (like git-cherry) to generate an | |
initial set of origin data | |
git-cherry-origins - command like git-cherry, but which obeys the stored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python () { | |
# Allow version-specific checksums | |
flags = d.getVarFlags("SRC_URI_%s" % d.getVar("PV", True)) | |
if flags: | |
for flag, value in flags.iteritems(): | |
d.setVarFlag("SRC_URI", flag, value) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyparsing import * | |
from string import printable | |
data = "${foo} ${${bar}} whee ${ bar ${baz ${meh} moo}}" | |
datastore = { | |
"foo": "fooval", | |
"bar": "barval", | |
"barval": "barvalval", | |
"meh": "MEH", | |
"baz MEH moo": "heh.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tokenize import generate_tokens, untokenize, INDENT, DEDENT | |
def dedent_python(codestr): | |
"""Remove the first level of indentation from a block of python code""" | |
indent = None | |
level = 0 | |
tokens = [] | |
lines = codestr.splitlines(True) | |
for toknum, tokval, _, _, _ in generate_tokens(iter(lines).next): |
OlderNewer