diff --git a/scripts/rebuild-recipe.sh b/scripts/rebuild-recipe.sh new file mode 100755 index 0000000..3856b5f --- /dev/null +++ b/scripts/rebuild-recipe.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -ex + +if [ -z "$1" ] +then + echo "$0: no argument provided" + exit 1 +fi + +if [ ! -d "cookbook/recipes/$1" ] +then + echo "$0: $1 is not a recipe" + exit 1 +fi + +rm -rfv "cookbook/recipes/$1/"{source,source.tar,target} +make "r.$1"