redox/scripts/show-package.sh
2026-08-10 17:53:05 -03:00

27 lines
628 B
Bash
Executable File

#!/usr/bin/env bash
# This script show the contents of the "stage" and "sysroot" directories in some recipe
if [ -z "$*" ]
then
echo "Show the contents of the "stage" and 'sysroot' directories 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")"
tree "$recipe_dir/target"/*/{stage,sysroot}
done