Skip to content

Commit

Permalink
Overwrite gateware.rev if it is empty.
Browse files Browse the repository at this point in the history
Fixes #19.
  • Loading branch information
mithro committed Apr 18, 2017
1 parent cf16504 commit 967dabc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build-litex-qemu.sh
Expand Up @@ -19,14 +19,12 @@ function download() {
REV="$(cat gateware.rev)"
fi
if [ x"$REV" = x"" ]; then
if [ ! -e gateware.rev ]; then
REV="$(svn ls $GITHUB_URL/trunk/archive/$BRANCH | sort | tail -n1 | sed -e's-/$--')"
if [ x"$REV" = x"" ]; then
echo "Unable to find upstream revision!"
fi
echo $REV > gateware.rev
echo "Using revision $REV"
REV="$(svn ls $GITHUB_URL/trunk/archive/$BRANCH | sort | tail -n1 | sed -e's-/$--')"
if [ x"$REV" = x"" ]; then
echo "Unable to find upstream revision!"
fi
echo $REV > gateware.rev
echo "Using revision $REV"
fi
echo
echo "Download $NAME from $GITHUB_URL/trunk/archive/$BRANCH/$REV/$PLATFORM/$TARGET/$RPATH"
Expand Down

0 comments on commit 967dabc

Please sign in to comment.