first attempt at a rework of kexclude -> {node,plc}yumexclude
[build.git] / nodeyumexclude.sh
1 #!/bin/bash
2
3 COMMAND=$(basename $0)
4 . $(dirname $0)/build.common
5
6 function usage () {
7     echo "Usage: $COMMAND fcdistro pldistro"
8     echo "outputs the list of packages to exclude from the stock repo"
9     echo "this is set in yumexclude.pkgs, and needs to match the set of packages"
10     echo "that are produced by the planetlab build and meant to replace the stock ones"
11     exit 1
12 }
13
14 [[ -z "$@" ]] && usage
15 FCDISTRO=$1; shift
16 [[ -z "$@" ]] && usage
17 PLDISTRO=$1; shift
18 [[ -n "$@" ]] && usage
19
20 pl_nodeyumexclude "$FCDISTRO" "$PLDISTRO"