redox/scripts/show-package.sh
2026-07-29 11:18:53 +07:00

27 lines
617 B
Bash
Executable File

#!/usr/bin/env bash
# This script show the contents of the "stage" and "sysroot" folders in some recipe
if [ -z "$*" ]
then
echo "Show the contents of the stage and sysroot folders in recipe(s)"
echo "Usage: $0 recipe1 ..."
echo "Must be run from the 'redox' directory"
echo "e.g. $0 kernel"
exit 1
fi
find_recipe="target/release/repo"
if [ ! -x "$find_recipe" ]
then
echo "$find_recipe not found."
echo "Please run 'make fstools' and try again."
exit 1
fi
for recipe in $*
do
recipe_dir="$("$find_recipe" find "$recipe")"
ls -1 "$recipe_dir/target"/*/{stage,sysroot}
done