Add rebuild-recipe script
This commit is contained in:
parent
bdbfaae59d
commit
61e516cfbd
18
scripts/rebuild-recipe.sh
Executable file
18
scripts/rebuild-recipe.sh
Executable 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"
|
Loading…
Reference in a new issue