File: meson_create_symlink

package info (click to toggle)
jack-example-tools 4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 900 kB
  • sloc: ansic: 10,030; cpp: 2,295; makefile: 9; sh: 2
file content (11 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env sh
#
# Script to create a symlink for an arbitrary file ($2) in a directory ($1)
# below $MESON_INSTALL_DESTDIR_PREFIX of a specific name ($3).
#
# E.g. `meson_create_symlink bin test2 test` creates:
# $MESON_INSTALL_DESTDIR_PREFIX/bin/test2 -> test

set -eu

ln -fsv "$2" "$MESON_INSTALL_DESTDIR_PREFIX/$1/$3"