Use symlinks instead of scripts

This commit is contained in:
Ian Douglas Scott 2017-07-01 12:10:22 -07:00
parent c3aa12549e
commit e098418b0e
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959
2 changed files with 2 additions and 4 deletions

View File

@ -44,7 +44,6 @@ function recipe_clean {
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
echo -e '#!/bin/ion\ndash @args[1..]' > "$1/bin/sh"
chmod a+x "$1/bin/sh"
ln -s "dash" "$1/bin/sh"
skip=1
}

View File

@ -53,7 +53,6 @@ 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"
ln -s "gcc" "$1/bin/cc"
skip=1
}