Files
mixer-tools/init-mix.sh
T
Tudor Marcu 17a77f3abf Change bundle repo structure
To simplify things, there will now be a "clr-bundles" repo directory, which
will contain all of the Clear bundles from master and appropriate tags, and a
"mix-bundles" repo directory which will contain the bundles that the mixer
will use to generate mixes from. This separation removes the need to work with
a single repo and juggle both upstream bundles and custom ones, so the user
will have a full list of bundles to copy from if needed, and can focus on just
modifying their own bundle set.
Note, the clr-bundles directory should remain untouched; bundle modifications
should only be done in the mix-bundles directory.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2016-04-28 23:29:07 +00:00

62 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
if [ -e /usr/lib/os-release ]; then
CLRVER=$(awk -F= '/^VERSION_ID/ { print $2 }' /usr/lib/os-release)
fi
while [[ $# > 0 ]]
do
key="$1"
case $key in
-c|--config)
BUILDERCONF="$2"
shift
;;
-b|--buildver)
CLRVER="$2"
shift
;;
-h|--help)
echo -e "Usage: mixer-init-mix.sh\n"
echo -e "\t-c, --config Supply specific builder.conf\n"
echo -e "\t-b, --buildver Supply specific Clear version to build against\n"
exit
;;
*)
echo -e "Invalid option\n"
exit
;;
esac
shift
done
if [ -z "$CLRVER" ]; then
echo -e "Please supply Clear version to use\n"
exit
fi
echo -e "Creating initial update version 10\n"
mixer-init-versions.sh -m 10 -c $CLRVER
mixer-update-bundles.sh
echo -e "Initializing mix with bundles:\n* os-core\n* os-core-update\n"
cd mix-bundles/
rm -rf *
git checkout os-core os-core-update
git add .
git commit -s -m "Prune bundles for starting version 10"
cd -
if [[ ! -z $BUILDERCONF ]]; then
mixer-build-chroots.sh -c $BUILDERCONF
mixer-create-update.sh -c $BUILDERCONF
else
mixer-build-chroots.sh
mixer-create-update.sh
fi
# vi: ts=8 sw=4 sts=4 et tw=80