Fix termplay recipe (sorry)

This commit is contained in:
jD91mZM2 2018-04-19 08:52:36 +02:00
parent d97c0880de
commit abd11823c2
No known key found for this signature in database
GPG Key ID: 3055D54729A72666
2 changed files with 13 additions and 1 deletions

12
cook.sh
View File

@ -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" >&2
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

View File

@ -1,2 +1,2 @@
GIT=https://github.com/jD91mZM2/termplay.git
CARGOFLAGS="--no-default-features --features termion"
CARGOFLAGS="--no-default-features --features termion --example termplay"