Download third_party/ktx-src/scripts/readlink.sh from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/scripts/readlink.sh
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/ktx-src/scripts/readlink.sh
-
curl -L -o readlink.sh https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/scripts/readlink.sh
418 Bytes
| # Copyright 2022 The Khronos Group Inc. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # aaaaargh! macOS readlink did not support `-f` until macOS 12.3. | |
| # CI has yet to catch up - latest is 12.2 - so this script finds | |
| # the canonical file using just `readlink`. | |
| libdir=$(dirname $1) | |
| prev_target=$1 | |
| until target="$(readlink $prev_target)"; [ -z $target ]; do | |
| prev_target=$libdir/$target; | |
| done | |
| echo $prev_target | |