| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | #!/bin/bash | 
 | 2 |  | 
 | 3 | family=chromeos | 
 | 4 |  | 
 | 5 | # The source package name will be the first token in the changelog | 
 | 6 | changelog="${family}/changelog" | 
 | 7 | package=$(sed -n '1s/\([^ ]*\).*/\1/p' ${changelog}) | 
 | 8 |  | 
 | 9 | # Get some version info | 
 | 10 | release=$(sed -n "1s/^${package} (\([^-]*\)-.*/\1/p" ${changelog}) | 
 | 11 | revision=$(sed -n "1s/^${package} (${release}-\([^)]*\).*/\1/p" ${changelog}) | 
 | 12 |  | 
 | 13 | flavourconf=$(find ${family} -name config.flavour.$1) | 
 | 14 | archconfdir=$(dirname ${flavourconf}) | 
 | 15 | version="Ubuntu ${release}-${revision}-$1" | 
 | 16 | re="s/.*\(CONFIG_VERSION_SIGNATURE\).*/\1=""\"${version}\"""/" | 
 | 17 |  | 
 | 18 | # Generarte .config | 
 | 19 | cat ${family}/config/config.common.${family} \ | 
 | 20 |     ${archconfdir}/config.common.* \ | 
 | 21 |     ${flavourconf} | sed -e "${re}" > .config |