Setting tag pyplnet-7.0-0
[build.git] / nodeyumexclude.sh
1 #!/bin/bash
2
3 COMMAND=$(basename $0)
4 DIRNAME=$(dirname $0)
5 . $DIRNAME/build.common
6
7 function usage () {
8     echo "Usage: $COMMAND fcdistro pldistro"
9     echo "outputs the list of packages to exclude from the stock repo"
10     echo "this is set in yumexclude.pkgs, and needs to match the set of packages"
11     echo "that are produced by the planetlab build and meant to replace the stock ones"
12     exit 1
13 }
14
15 [[ -z "$@" ]] && usage
16 FCDISTRO=$1; shift
17 [[ -z "$@" ]] && usage
18 PLDISTRO=$1; shift
19 [[ -n "$@" ]] && usage
20
21 # check if pkgs.py is in PATH
22 type -p pkgs.py >& /dev/null || export PATH=$DIRNAME:$PATH
23
24 pl_nodeyumexclude "$FCDISTRO" "$PLDISTRO" "$DIRNAME"