Skip to content
Snippets Groups Projects
Commit d1ff741b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Allow stage function

parent f00ab6f0
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,23 @@ function op {
popd > /dev/null
;;
stage)
mkdir -p stage/bin
mkdir -p stage
pushd build > /dev/null
if [ "$(type -t recipe_stage)" = "function" ]
then
recipe_stage ../stage
fi
#TODO xargo install --root "../stage" $CARGOFLAGS
cp -v $(find target/x86_64-unknown-redox/debug/ -maxdepth 1 -type f ! -name "*.*") ../stage/bin
strip -v ../stage/bin/*
bins="$(find target/x86_64-unknown-redox/debug/ -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
popd > /dev/null
;;
unstage)
......
GIT=https://github.com/jackpot51/pixelcannon.git
function recipe_stage {
mkdir -pv "$1/apps/pixelcannon"
cp -Rv assets "$1/apps/pixelcannon"
}
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