support: ensure git tree properly cleaned.
This commit is contained in:
parent
f980a3abe3
commit
16db6f132f
2 changed files with 7 additions and 4 deletions
|
@ -26,11 +26,14 @@ TVH_ROOT=$(cd $(dirname $0)/..; pwd)
|
|||
|
||||
# Setup
|
||||
cd $TVH_ROOT || exit 1
|
||||
git checkout $1 && git checkout . || exit 1
|
||||
NOW=`date -R`
|
||||
CHANGELOG=$TVH_ROOT/debian/changelog
|
||||
VERFILE=$TVH_ROOT/src/version.c
|
||||
|
||||
# Checkout
|
||||
git checkout $REL || die "could not checkout $REL"
|
||||
git clean -dfx || die "could not clean git tree"
|
||||
|
||||
# Create version file
|
||||
VER=$($TVH_ROOT/support/version $VERFILE)
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@ cd $SRCDIR
|
|||
|
||||
# Arguments
|
||||
REL=$1
|
||||
|
||||
# Checkout
|
||||
if [ ! -z "$REL" ]; then
|
||||
git checkout $REL || die "could not checkout $REL"
|
||||
fi
|
||||
|
||||
# Clean
|
||||
git checkout . || die "could not clean git tree"
|
||||
git clean -dfx || die "could not clean git tree"
|
||||
|
||||
# Version
|
||||
VER=$(./support/version)
|
||||
|
|
Loading…
Add table
Reference in a new issue