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

Add staging command

parent a8c48d18
No related branches found
No related tags found
No related merge requests found
build
stage
......@@ -11,45 +11,43 @@ if [ -n "$1" ]
then
if [ -d "recipes/$1" ]
then
pushd "recipes/$1"
cd "recipes/$1"
source recipe.sh
for arg in "${@:2}"
do
case "$arg" in
build)
pushd build
cd build
xargo build --target "$TARGET" $CARGOFLAGS
popd
;;
clean)
pushd build
cd build
xargo clean
popd
;;
install)
mkdir -p root/bin
pushd build
#TODO xargo install --root "../root" $CARGOFLAGS
cp -v $(find target/x86_64-unknown-redox/debug/ -maxdepth 1 -type f ! -name "*.*") ../root/bin
popd
;;
fetch)
git clone --recursive "$GIT" build
;;
stage)
mkdir -p stage/bin
cd build
#TODO xargo install --root "../stage" $CARGOFLAGS
cp -v $(find target/x86_64-unknown-redox/debug/ -maxdepth 1 -type f ! -name "*.*") ../stage/bin
;;
unstage)
rm -rf stage
;;
unfetch)
rm -rf build
;;
update)
pushd build
cd build
xargo update
popd
;;
*)
echo "$0 {package} {build|clean|fetch|update}"
;;
esac
done
popd
else
echo "$0: recipe '$1' not found"
fi
......
File deleted
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