Always create new package when building

master
Perttu Ahola 2012-07-23 07:53:27 +03:00
parent 6d606fe90f
commit 032b3467f4
1 changed files with 4 additions and 8 deletions

View File

@ -86,14 +86,10 @@ for ruledir in $rulesdir/*; do
mtdir=$builddir/minetest-$tag
# Make package if doesn't already exist
pkg="$builddir/$tag.tar"
if [ -a "$pkg" ]; then
echo "== Package exists for $tag"
else
echo "== Creating package for $tag"
pushd $clonedir &>/dev/null
git archive --format tar $tag > "$pkg"
popd &>/dev/null
fi
echo "== Creating package for $tag"
pushd $clonedir &>/dev/null
git archive --format tar $tag > "$pkg"
popd &>/dev/null
# Build if hasn't already been built
check_built_minetest "$mtdir"
if [ "$?" == "0" ]; then