mirror of
https://github.com/pret/agbcc.git
synced 2026-09-30 14:15:25 -04:00
bfc767e567
BSD utilities on macOS do not ignore trailing slashes in commands, which results in this script incorrectly copying files to /tools/agbcc, rather than the intended /tools/agbcc/include. Removing the trailing slash should prevent this from happening, and allow macOS users to use the tool as intended.
17 lines
485 B
Bash
Executable File
17 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ "$1" != "" ]; then
|
|
mkdir -p $1/tools/agbcc
|
|
mkdir -p $1/tools/agbcc/bin
|
|
mkdir -p $1/tools/agbcc/include
|
|
mkdir -p $1/tools/agbcc/lib
|
|
cp agbcc $1/tools/agbcc/bin/
|
|
cp old_agbcc $1/tools/agbcc/bin/
|
|
cp -R libc/include $1/tools/agbcc/ #drop include, because we don't want include/include
|
|
cp ginclude/* $1/tools/agbcc/include/
|
|
cp libgcc.a $1/tools/agbcc/lib/
|
|
cp libc.a $1/tools/agbcc/lib/
|
|
else
|
|
echo "Usage: install.sh PATH"
|
|
fi
|