This repository has been archived on 2025-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
zig-clang/install.sh
2024-12-28 11:44:35 +13:00

18 lines
328 B
Bash

#! /bin/sh
if [ $# -eq 0 ]
then
echo "No arguments supplied"
fi
PREFIX="$1"
if [ ! -d "$PREFIX" ]; then
echo "Error: The path '$PREFIX' does not exist or is not a directory."
exit 1
fi
SCRIPT_DIR=$(dirname "$0")
cp "$SCRIPT_DIR/bin/clang" "$PREFIX/bin/clang"
cp "$SCRIPT_DIR/bin/clang++" "$PREFIX/bin/clang++"