Disable openvswitch for rc26 build
[build.git] / getkexcludes.sh
1 #!/bin/bash
2
3 COMMAND=$(basename $0)
4 . $(dirname $0)/build.common
5
6 function usage () {
7     echo "Usage: $COMMAND [-f fcdistro]"
8     echo "outputs the list of packages to exclude from the stock repositories"
9     echo "this is set in build.common, and needs to fit the set of packages"
10     echo "that we override in the planetlab build"
11     exit 1
12 }
13
14 while getopts "f:" opt ; do
15     case $opt in
16         f) FCDISTRO=$OPTARG ;;
17         h|*) usage ;;
18     esac
19 done
20         
21 toshift=$(($OPTIND - 1))
22 shift $toshift
23
24 [[ -n "$@" ]] && usage
25
26 # if the fcdistro is passed in argument
27 if [ -n "$FCDISTRO" ] ; then
28     pl_getKexcludes "$FCDISTRO"
29 # otherwise use the value for the current system
30 else
31     echo "$pl_KEXCLUDES"
32 fi