Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
kernel-source
> config-subst
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File config-subst of Package kernel-source (Revision 8)
Currently displaying revision
8
,
show latest
#!/bin/sh # Substitute CONFIG_ variables awk ' function subst(force) { if (!done || force) { if (has_value) print symbol "=" value else print "# " symbol " is not set" } done=1 } BEGIN { symbol = ARGV[1] if (ARGC == 3) { has_value=1 value = ARGV[2] } split("", ARGV) } match($0, "\\<" symbol "\\>") \ { subst(1) ; next } { print } END { subst(0) } ' "$@"