first attempt at a rework of kexclude -> {node,plc}yumexclude
[build.git] / nodeyumexclude.sh
diff --git a/nodeyumexclude.sh b/nodeyumexclude.sh
new file mode 100755 (executable)
index 0000000..7996592
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+COMMAND=$(basename $0)
+. $(dirname $0)/build.common
+
+function usage () {
+    echo "Usage: $COMMAND fcdistro pldistro"
+    echo "outputs the list of packages to exclude from the stock repo"
+    echo "this is set in yumexclude.pkgs, and needs to match the set of packages"
+    echo "that are produced by the planetlab build and meant to replace the stock ones"
+    exit 1
+}
+
+[[ -z "$@" ]] && usage
+FCDISTRO=$1; shift
+[[ -z "$@" ]] && usage
+PLDISTRO=$1; shift
+[[ -n "$@" ]] && usage
+
+pl_nodeyumexclude "$FCDISTRO" "$PLDISTRO"