Skip to content
Snippets Groups Projects
Verified Commit abd11823 authored by jD91mZM2's avatar jD91mZM2
Browse files

Fix termplay recipe (sorry)

parent d97c0880
No related branches found
No related tags found
1 merge request!140Fix termplay recipe (sorry)
...@@ -358,8 +358,18 @@ function op { ...@@ -358,8 +358,18 @@ function op {
fi fi
bins="$(find target/$TARGET/$build/ -maxdepth 1 -type f ! -name '*.*')" 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" ] if [ -n "$bins" ]
then then
if [ -n "$example" ]
then
echo "$(tput bold)Note$(tput sgr0): No binaries detected, using example binaries" >&2
fi
mkdir -p "../stage/$BINDIR" mkdir -p "../stage/$BINDIR"
for bin in $bins for bin in $bins
do do
...@@ -370,6 +380,8 @@ function op { ...@@ -370,6 +380,8 @@ function op {
strip -v "$bin" -o "../stage/$BINDIR/$(basename $bin)" strip -v "$bin" -o "../stage/$BINDIR/$(basename $bin)"
fi fi
done done
else
echo "$(tput bold)Warning$(tput sgr0): Recipe does not have any binaries" >&2
fi fi
docgen ../source ../stage/ref docgen ../source ../stage/ref
......
GIT=https://github.com/jD91mZM2/termplay.git 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