File: update-libknot-symlinks.sh

package info (click to toggle)
knot 3.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,880 kB
  • sloc: ansic: 154,039; sh: 5,963; python: 1,141; makefile: 818
file content (17 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# a utility script to update libknot*.symbols.* symlinks after SONAME bump
#
# run it from debian/ dir:
#
#     cd debian
#     ./scripts/update-libknot-symlinks.sh

set -e

LINK_TARGET=$(find . -maxdepth 1 -type f -name 'libknot*.symbols.*')
echo "updating libknot* symlinks against target: $LINK_TARGET"

for LINK_NAME in $(find . -maxdepth 1 -type l -name 'libknot*.symbols*'); do
  echo "ln -sf $LINK_TARGET $LINK_NAME"
  ln -sf "$LINK_TARGET" "$LINK_NAME"
done