diff options
Diffstat (limited to 'Libraries/LibM')
-rwxr-xr-x | Libraries/LibM/install.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Libraries/LibM/install.sh b/Libraries/LibM/install.sh index 83c8f6e632..b74cecdd2c 100755 --- a/Libraries/LibM/install.sh +++ b/Libraries/LibM/install.sh @@ -1,6 +1,9 @@ #!/bin/bash -mkdir -p ../Root/usr/include/sys/ -mkdir -p ../Root/usr/lib/ -cp *.h ../Root/usr/include/ -cp libm.a ../Root/usr/lib/ +set -e +SERENITY_ROOT=../../ + +mkdir -p $SERENITY_ROOT/Root/usr/include/sys/ +mkdir -p $SERENITY_ROOT/Root/usr/lib/ +cp *.h $SERENITY_ROOT/Root/usr/include/ +cp libm.a $SERENITY_ROOT/Root/usr/lib/ |