Skip to content

Commit

Permalink
oebb.sh: add reset command
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
shr-project authored and koenkooi committed Sep 6, 2012
1 parent ba5cc2b commit c10890a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions oebb.sh
Expand Up @@ -331,6 +331,15 @@ function tag_layers()
echo $TAG >> ${OE_BASE}/tags
}

###############################################################################
# reset_layers - Remove all local changes including stash and ignored files
###############################################################################
function reset_layers()
{
set_environment
env gawk -v command=reset -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
}

###############################################################################
# changelog - Display changelog for all layers with a given tag
###############################################################################
Expand Down Expand Up @@ -385,6 +394,12 @@ then
exit 0
fi

if [ $1 = "reset" ]
then
reset_layers
exit 0
fi

if [ $1 = "tag" ]
then
if [ -n "$2" ] ; then
Expand Down Expand Up @@ -446,6 +461,7 @@ fi
echo ""
echo "Usage: $0 config <machine>"
echo " $0 update"
echo " $0 reset"
echo " $0 tag [tagname]"
echo " $0 changelog <tagname>"
echo " $0 checkout <tagname>"
Expand Down

0 comments on commit c10890a

Please sign in to comment.