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