Revision ed23690d507c557d048255c683af1e9d228bfbe1 authored by Linus Torvalds on 01 February 2010, 18:42:08 UTC, committed by Linus Torvalds on 01 February 2010, 18:42:08 UTC
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: regulator: Specify REGULATOR_CHANGE_STATUS for WM835x LED constraints
unroll.awk
# This filter requires one command line option of form -vN=n
# where n must be a decimal number.
#
# Repeat each input line containing $$ n times, replacing $$ with 0...n-1.
# Replace each $# with n, and each $* with a single $.
BEGIN {
n = N + 0
}
{
if (/\$\$/) { rep = n } else { rep = 1 }
for (i = 0; i < rep; ++i) {
tmp = $0
gsub(/\$\$/, i, tmp)
gsub(/\$\#/, n, tmp)
gsub(/\$\*/, "$", tmp)
print tmp
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...