diff --git a/recipes/dash/recipe.sh b/recipes/dash/recipe.sh index b67e079ae08460ddd7db7ae7fe17a8499f9f8f05..27c87435fe0111cdd707df66d45a51d5e299f135 100644 --- a/recipes/dash/recipe.sh +++ b/recipes/dash/recipe.sh @@ -44,6 +44,7 @@ function recipe_clean { function recipe_stage { dest="$(realpath $1)" make DESTDIR="$dest" install - cp "$1/bin/dash" "$1/bin/sh" # TODO: symlink when Redox supports them + echo -e '#!/bin/ion\ndash @args[1..]' > "$1/bin/sh" + chmod a+x "$1/bin/sh" skip=1 } diff --git a/recipes/gcc/recipe.sh b/recipes/gcc/recipe.sh index ad0f38fdcb439c2a0d9600331c50f4a5c7dc21ca..a27002e6d73bdcfe96e7673f3c9297a183f86769 100644 --- a/recipes/gcc/recipe.sh +++ b/recipes/gcc/recipe.sh @@ -53,5 +53,7 @@ function recipe_stage { dest="$(realpath $1)" make DESTDIR="$dest" install-gcc install-target-libgcc find "$dest"/{bin,libexec} -exec x86_64-elf-redox-strip {} ';' 2> /dev/null + echo -e '#!/bin/ion\ngcc @args[1..]' > "$1/bin/cc" + chmod a+x "$1/bin/cc" skip=1 }