mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 19:04:35 +00:00

Since there is a BSD variant of install that does not support the -D option like install on Linux, provide a fileinstall wrapper script. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
9 lines
149 B
Bash
Executable File
9 lines
149 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
|
|
install -D "$1" "$2"
|
|
else
|
|
mkdir -p "$(dirname "$2")"
|
|
install "$1" "$2"
|
|
fi
|