Skip to content
Snippets Groups Projects
Unverified Commit 7dd5bf7c authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #140 from jD91mZM2/termplay

Fix termplay recipe (sorry)
parents d97c0880 5223ca0d
No related branches found
No related tags found
No related merge requests found
......@@ -358,8 +358,18 @@ function op {
fi
bins="$(find target/$TARGET/$build/ -maxdepth 1 -type f ! -name '*.*')"
if [ -z "$bins" ]
then
example=true
bins="$(find target/$TARGET/$build/examples/ -maxdepth 1 -type f ! -name '*.*' ! -name '*-*' \
2> /dev/null || true)"
fi
if [ -n "$bins" ]
then
if [ -n "$example" ]
then
echo "$(tput bold)Note$(tput sgr0): No binaries detected, using example binaries"
fi
mkdir -p "../stage/$BINDIR"
for bin in $bins
do
......@@ -370,6 +380,8 @@ function op {
strip -v "$bin" -o "../stage/$BINDIR/$(basename $bin)"
fi
done
else
echo "$(tput bold)Warning$(tput sgr0): Recipe does not have any binaries" >&2
fi
docgen ../source ../stage/ref
......
GIT=https://github.com/jD91mZM2/termplay.git
CARGOFLAGS="--no-default-features --features termion"
CARGOFLAGS="--no-default-features --features termion --example termplay"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment