mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 12:54:20 +08:00
Merge pull request #27 from ids1024/link
Use /bin/sh and /bin/cc ion scripts
This commit is contained in:
commit
08e6b06fc3
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user