Add rebuild-recipe script

This commit is contained in:
Jeremy Soller 2023-03-10 07:37:26 -07:00
parent bdbfaae59d
commit 61e516cfbd
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

18
scripts/rebuild-recipe.sh Executable file
View file

@ -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"