Update pixelcannon recipe

This commit is contained in:
Jeremy Soller 2016-12-28 20:09:03 -07:00
parent b769485cee
commit fa92725782
4 changed files with 25 additions and 12 deletions

4
all.sh
View File

@ -1,3 +1,7 @@
#!/bin/bash
set -e
for recipe in `ls -1 recipes`
do
./cook.sh $recipe $*

23
cook.sh
View File

@ -61,17 +61,18 @@ function op {
if [ "$(type -t recipe_stage)" = "function" ]
then
recipe_stage ../stage
fi
#TODO xargo install --root "../stage" $CARGOFLAGS
bins="$(find target/x86_64-unknown-redox/release/ -maxdepth 1 -type f ! -name '*.*')"
if [ -n "$bins" ]
then
mkdir -p ../stage/bin
for bin in $bins
do
cp -v "$bin" "../stage/bin/$(basename $bin)"
strip -v "../stage/bin/$(basename $bin)"
done
else
#TODO xargo install --root "../stage" $CARGOFLAGS
bins="$(find target/$TARGET/release/ -maxdepth 1 -type f ! -name '*.*')"
if [ -n "$bins" ]
then
mkdir -p ../stage/bin
for bin in $bins
do
cp -v "$bin" "../stage/bin/$(basename $bin)"
strip -v "../stage/bin/$(basename $bin)"
done
fi
fi
popd > /dev/null
;;

View File

@ -1 +1,7 @@
./all.sh distclean dist publish
#!/bin/bash
set -e
./all.sh distclean
./all.sh dist
./all.sh publish

View File

@ -5,4 +5,6 @@ function recipe_stage {
cp -Rv assets "$1/apps/pixelcannon"
mkdir -pv "$1/ui/apps"
cp -v manifest "$1/ui/apps/pixelcannon"
mkdir -pv "$1/ui/bin"
cp -v "target/$TARGET/release/pixelcannon" "$1/ui/bin"
}